Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Avila2017-02-11 00:17:14 +0000
committerDavid W. Miller2017-02-11 00:17:14 +0000
commit9f606c305eed1e4029be31cdd85750f810b81924 (patch)
treef71a4ddfab2bcd99421df61eaf662c5f0f2f213c /plugins/org.eclipse.osee.orcs.db
parent2bdc6937dec65677d3bc3bfb3b6f71b0d211dfa9 (diff)
downloadorg.eclipse.osee-9f606c305eed1e4029be31cdd85750f810b81924.tar.gz
org.eclipse.osee-9f606c305eed1e4029be31cdd85750f810b81924.tar.xz
org.eclipse.osee-9f606c305eed1e4029be31cdd85750f810b81924.zip
bug: Fix reading String attributes as Objects
Diffstat (limited to 'plugins/org.eclipse.osee.orcs.db')
-rw-r--r--plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/proxy/VarCharDataProxy.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/proxy/VarCharDataProxy.java b/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/proxy/VarCharDataProxy.java
index 68b5d1a1bf..26621351c7 100644
--- a/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/proxy/VarCharDataProxy.java
+++ b/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/proxy/VarCharDataProxy.java
@@ -68,7 +68,13 @@ public class VarCharDataProxy extends AbstractDataProxy implements CharacterData
@Override
public boolean setValue(Object value) throws OseeCoreException {
boolean response = false;
- Object currentValue = getValue();
+ Object currentValue;
+ if (value instanceof String) {
+ currentValue = getValueAsString();
+ } else {
+ currentValue = getValue();
+ }
+
if (currentValue == value || currentValue != null && currentValue.equals(value)) {
response = false;
} else {

Back to the top