Commit c315a787 authored by apupier's avatar apupier
Browse files

Fix case of no MANIFEST in .bos to import which was broken with previous

refactor
parent aeb27e94
......@@ -213,10 +213,12 @@ public class ImportBosArchiveOperation {
protected Set<String> getResourcesToOpen(final IContainer container) {
final Properties manifestProperties = getManifestInfo(container);
final String toOpen = manifestProperties.getProperty(ExportBosArchiveOperation.TO_OPEN);
if (toOpen != null) {
final String[] array = toOpen.split(",");
return new HashSet<String>(Arrays.asList(array));
if (manifestProperties != null) {
final String toOpen = manifestProperties.getProperty(ExportBosArchiveOperation.TO_OPEN);
if (toOpen != null) {
final String[] array = toOpen.split(",");
return new HashSet<String>(Arrays.asList(array));
}
}
return Collections.emptySet();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment