Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-07-28 18:42:14 +0000
committerddunne2010-07-28 18:42:14 +0000
commit50b6291b39fc5c9334e085265c6b4430d4d24027 (patch)
treed83086eb739cb1886addd244c77399e3815cf97c /plugins
parentd26ff1b7d6e9911ce540a8e3c8353243f01dc0aa (diff)
downloadorg.eclipse.osee-50b6291b39fc5c9334e085265c6b4430d4d24027.tar.gz
org.eclipse.osee-50b6291b39fc5c9334e085265c6b4430d4d24027.tar.xz
org.eclipse.osee-50b6291b39fc5c9334e085265c6b4430d4d24027.zip
fixed check to ensure percent is entered correctly
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/dialog/TaskOptionStatusDialog.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/dialog/TaskOptionStatusDialog.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/dialog/TaskOptionStatusDialog.java
index 44a9376e4a7..e3f5d16f8e2 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/dialog/TaskOptionStatusDialog.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/dialog/TaskOptionStatusDialog.java
@@ -57,14 +57,11 @@ public class TaskOptionStatusDialog extends SMAStatusDialog {
@Override
protected IStatus isComplete() {
TaskResOptionDefinition trd = getSelectedOptionDef();
- if (trd == null) {
- return Status.OK_STATUS;
- }
int percentComp = percent.getInt();
- if (trd.isCompleteable() && percentComp != 100) {
+ if ((trd != null && trd.isCompleteable()) && percentComp != 100) {
return new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID, "Completed resolution must have %Complete == 100");
}
- if (percentComp == 100 && !trd.isCompleteable()) {
+ if (percentComp == 100 && (trd != null && !trd.isCompleteable())) {
return new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID,
"Can't have 100% complete with a non-Completed resolution");
}

Back to the top