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 { ...@@ -213,10 +213,12 @@ public class ImportBosArchiveOperation {
protected Set<String> getResourcesToOpen(final IContainer container) { protected Set<String> getResourcesToOpen(final IContainer container) {
final Properties manifestProperties = getManifestInfo(container); final Properties manifestProperties = getManifestInfo(container);
final String toOpen = manifestProperties.getProperty(ExportBosArchiveOperation.TO_OPEN); if (manifestProperties != null) {
if (toOpen != null) { final String toOpen = manifestProperties.getProperty(ExportBosArchiveOperation.TO_OPEN);
final String[] array = toOpen.split(","); if (toOpen != null) {
return new HashSet<String>(Arrays.asList(array)); final String[] array = toOpen.split(",");
return new HashSet<String>(Arrays.asList(array));
}
} }
return Collections.emptySet(); 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