mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[yole] fix NRE
This commit is contained in:
@@ -37,16 +37,12 @@ public class CoreJarHandler extends JarHandlerBase {
|
||||
Map<EntryInfo, CoreJarVirtualFile> entries = new HashMap<EntryInfo, CoreJarVirtualFile>();
|
||||
|
||||
final Map<String, EntryInfo> entriesMap = getEntriesMap();
|
||||
if (entriesMap != null) {
|
||||
for (EntryInfo info : entriesMap.values()) {
|
||||
getOrCreateFile(info, entries);
|
||||
}
|
||||
for (EntryInfo info : entriesMap.values()) {
|
||||
getOrCreateFile(info, entries);
|
||||
}
|
||||
|
||||
myRoot = getOrCreateFile(getEntryInfo(""), entries);
|
||||
}
|
||||
else {
|
||||
myRoot = null;
|
||||
}
|
||||
EntryInfo rootInfo = getEntryInfo("");
|
||||
myRoot = rootInfo != null ? getOrCreateFile(rootInfo, entries) : null;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user