Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegumi.telles2018-04-05 13:54:09 +0000
committermegumi.telles2018-04-05 13:54:09 +0000
commitfe127ee3aa3ef6f2a1c0839018ed40cbc6af5db0 (patch)
treeb45ddf7ab3b70696d121e0e7cdfb885c9a63254c /plugins
parentbc9bca5402f32a8b808f2d3517de0c5dcb910c79 (diff)
downloadorg.eclipse.osee-fe127ee3aa3ef6f2a1c0839018ed40cbc6af5db0.tar.gz
org.eclipse.osee-fe127ee3aa3ef6f2a1c0839018ed40cbc6af5db0.tar.xz
org.eclipse.osee-fe127ee3aa3ef6f2a1c0839018ed40cbc6af5db0.zip
bug: Fix CI integration numeric integer error
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java b/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java
index fa8d987ff85..30b364bf736 100644
--- a/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java
+++ b/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java
@@ -38,6 +38,7 @@ import org.eclipse.osee.disposition.model.OperationSummaryEntry;
import org.eclipse.osee.disposition.model.ResolutionMethod;
import org.eclipse.osee.disposition.rest.internal.LocationRangesCompressor;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
@@ -594,7 +595,8 @@ public final class DispoUtil {
for (Integer locRef : ranges) {
for (Entry<String, Discrepancy> discrepancy : item.getDiscrepanciesList().entrySet()) {
Discrepancy value = discrepancy.getValue();
- if (locRef == Integer.valueOf(value.getLocation())) {
+ String location = value.getLocation();
+ if (Strings.isValid(location) && locRef == Integer.valueOf(location)) {
removeDiscrepancies.add(discrepancy.getKey());
}
}
@@ -610,7 +612,8 @@ public final class DispoUtil {
boolean found = false;
for (Entry<String, Discrepancy> discrepancy : item.getDiscrepanciesList().entrySet()) {
Discrepancy value = discrepancy.getValue();
- if (locRef == Integer.valueOf(value.getLocation())) {
+ String location = value.getLocation();
+ if (Strings.isValid(location) && locRef == Integer.valueOf(location)) {
found = true;
break;
}

Back to the top