File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
src/main/java/org/codehaus/plexus/resource/loader Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -123,16 +123,19 @@ public Hashtable getEntries()
123123 {
124124 Hashtable allEntries = new Hashtable ( 559 );
125125
126- Enumeration all = theJar .entries ();
127-
128- while ( all .hasMoreElements () )
126+ if ( theJar != null )
129127 {
130- JarEntry je = ( JarEntry ) all . nextElement ();
128+ Enumeration all = theJar . entries ();
131129
132- // We don't map plain directory entries
133- if ( !je .isDirectory () )
130+ while ( all .hasMoreElements () )
134131 {
135- allEntries .put ( je .getName (), this .urlpath );
132+ JarEntry je = (JarEntry ) all .nextElement ();
133+
134+ // We don't map plain directory entries
135+ if ( !je .isDirectory () )
136+ {
137+ allEntries .put ( je .getName (), this .urlpath );
138+ }
136139 }
137140 }
138141 return allEntries ;
You can’t perform that action at this time.
0 commit comments