From a4e1f81b69d71a69fdf62ec9a880d85915ea660b Mon Sep 17 00:00:00 2001 From: Xuan Chen Date: Wed, 23 Jan 2008 03:14:20 +0000 Subject: [PATCH] [215863]] fix: NPE when Expanding Empty Zip File --- .../dstore/universal/miners/filesystem/FileClassifier.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/FileClassifier.java b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/FileClassifier.java index 66091d8b8d6..8c596328755 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/FileClassifier.java +++ b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/FileClassifier.java @@ -14,6 +14,7 @@ * Martin Oberhuber (Wind River) - Fix 154874 - handle files with space or $ in the name * Martin Oberhuber (Wind River) - [186640] Fix case sensitive issue comparing z/OS * Xuan Chen (IBM) - [191280] [dstore] Expand fails for folder "/folk" with 3361 children + * Xuan Chen (IBM) - [215863]] NPE when Expanding Empty Zip File ********************************************************************************/ package org.eclipse.rse.internal.dstore.universal.miners.filesystem; @@ -1003,6 +1004,10 @@ public class FileClassifier extends Thread // get the contents of the virtual path within the archive children = mgr.getContents(archiveFile, virtualPath); + if (null == children) + { + return; + } // go through each virtual child, and set the classification type for (int i = 0; i < children.length; i++) {