Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-09-01 15:55:44 +0000
committerDonald Dunne2016-09-06 15:26:44 +0000
commit2608e6849796d1c111c4ddc759c315a4173ff053 (patch)
tree3a524f444b86749625a2ca719b0daa4771e8939e
parenta53d6610d819311e6cda119a87b0bd9f975a980c (diff)
downloadorg.eclipse.osee-2608e6849796d1c111c4ddc759c315a4173ff053.tar.gz
org.eclipse.osee-2608e6849796d1c111c4ddc759c315a4173ff053.tar.xz
org.eclipse.osee-2608e6849796d1c111c4ddc759c315a4173ff053.zip
bug[ats_ATS312844]: Creating new Sprint errors
-rw-r--r--plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/agile/AgileEndpointImpl.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/agile/AgileEndpointImpl.java b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/agile/AgileEndpointImpl.java
index e510e64394c..ba71617fee7 100644
--- a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/agile/AgileEndpointImpl.java
+++ b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/agile/AgileEndpointImpl.java
@@ -103,8 +103,8 @@ public class AgileEndpointImpl implements AgileEndpointApi {
throw new OseeWebApplicationException(Status.BAD_REQUEST, "name is not valid");
}
- long uuid = newTeam.getUuid();
- if (uuid <= 0) {
+ Long uuid = newTeam.getUuid();
+ if (uuid == null || uuid <= 0) {
newTeam.setUuid(Lib.generateArtifactIdAsInt());
}
@@ -182,8 +182,8 @@ public class AgileEndpointImpl implements AgileEndpointApi {
}
String guid = GUID.create();
- long uuid = newFeatureGroup.getUuid();
- if (uuid <= 0) {
+ Long uuid = newFeatureGroup.getUuid();
+ if (uuid == null || uuid <= 0) {
uuid = Lib.generateArtifactIdAsInt();
}
@@ -233,8 +233,8 @@ public class AgileEndpointImpl implements AgileEndpointApi {
}
String guid = GUID.create();
- long uuid = newSprint.getUuid();
- if (uuid <= 0) {
+ Long uuid = newSprint.getUuid();
+ if (uuid == null || uuid <= 0) {
uuid = Lib.generateArtifactIdAsInt();
}
@@ -323,8 +323,8 @@ public class AgileEndpointImpl implements AgileEndpointApi {
}
String guid = GUID.create();
- long uuid = newBacklog.getUuid();
- if (uuid <= 0) {
+ Long uuid = newBacklog.getUuid();
+ if (uuid == null || uuid <= 0) {
uuid = Lib.generateArtifactIdAsInt();
}
ArtifactReadable teamArt = atsServer.getArtifact(newBacklog.getTeamUuid());

Back to the top