Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java
index 005c72643c5..b806eefa3ae 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java
@@ -31,12 +31,13 @@ public class VariableMap {
public VariableMap(Object... optionArgs) throws OseeArgumentException {
for (int i = 0; i < optionArgs.length; i += 2) {
- if (optionArgs[i] instanceof String) {
+ Object object = optionArgs[i];
+ if (object instanceof String) {
variableMap.put((String) optionArgs[i], optionArgs[i + 1]);
- } else if (optionArgs[i] == null) {
- throw new OseeArgumentException("Option %d must not be null", i);
+ } else if (object == null) {
+ throw new OseeArgumentException("The [%d]th option must not be null", i);
} else {
- throw new OseeArgumentException("Option %d must be of type string but is of type [%s]", i,
+ throw new OseeArgumentException("The [%d]th option must be of type string but is of type [%s]", i,
optionArgs[i].getClass().getName());
}
}

Back to the top