Permalink
Browse files

Fixing null pointer issue.

  • Loading branch information...
1 parent 968300b commit 474d07053013d5eecc13aee54b2a33ddece4689f @tHerrmann tHerrmann committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src-gwt/com/alkacon/vie/client/Entity.java
@@ -405,7 +405,7 @@ public native void setAttributeValue(String attributeName, String value) /*-{
public void setAttributeValue(String attributeName, String value, int index) {
I_EntityAttribute attribute = getAttribute(attributeName);
- if ((index == 0) && attribute.isSingleValue()) {
+ if ((attribute == null) || ((index == 0) && attribute.isSingleValue())) {
setAttributeValue(attributeName, value);
} else {
List<String> values = attribute.getSimpleValues();

0 comments on commit 474d070

Please sign in to comment.