bug: Fix CI integration numeric integer error
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 fa8d987..30b364b 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.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 @@
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 @@
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;
}