Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegumi.telles2017-08-03 12:15:39 -0400
committerMegumi Telles2017-08-03 13:49:56 -0400
commit3e0364c060b4b366217dd2b39e9f3c270f8732c0 (patch)
treef84ee4a8980e44a2f497642fd90cfcb830c45a5b
parentd44f86d7e37b231b4f57db20d253ec92e89052e0 (diff)
downloadorg.eclipse.osee-3e0364c060b4b366217dd2b39e9f3c270f8732c0.tar.gz
org.eclipse.osee-3e0364c060b4b366217dd2b39e9f3c270f8732c0.tar.xz
org.eclipse.osee-3e0364c060b4b366217dd2b39e9f3c270f8732c0.zip
bug: Fix NPE on view for publishing
-rw-r--r--plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishWithSpecifiedTemplate.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishWithSpecifiedTemplate.java b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishWithSpecifiedTemplate.java
index a07a6ad2c8..a9ff7572a4 100644
--- a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishWithSpecifiedTemplate.java
+++ b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishWithSpecifiedTemplate.java
@@ -144,9 +144,11 @@ public class PublishWithSpecifiedTemplate extends AbstractBlam {
Object view = variableMap.getValue(VIEW);
ArtifactId viewId = ArtifactId.SENTINEL;
- for (Entry<Long, String> entry : branchViews.entrySet()) {
- if (entry.getValue().equals(view)) {
- viewId = ArtifactId.valueOf(entry.getKey());
+ if (branchViews != null && !branchViews.isEmpty()) {
+ for (Entry<Long, String> entry : branchViews.entrySet()) {
+ if (entry.getValue().equals(view)) {
+ viewId = ArtifactId.valueOf(entry.getKey());
+ }
}
}

Back to the top