aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2013-02-22 11:54:33 +0100
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2013-02-22 11:54:33 +0100
commit8670c59d18063d796c071f64c2231a0b7704abfb (patch)
tree700a65b5e122a7a48963ed024bec5d1e8b9f8d81
parentc36e403dc90a0d0e4fb4ce40ad225acc3db7da7d (diff)
downloadgwtquery-8670c59d18063d796c071f64c2231a0b7704abfb.tar.gz
gwtquery-8670c59d18063d796c071f64c2231a0b7704abfb.zip
Fix null exception
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java
index ac3b3102..e0d48c26 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java
@@ -41,7 +41,9 @@ public abstract class JsonBuilderBase<J extends JsonBuilderBase<?>> implements J
if (prp != null && prp instanceof String) {
return parse((String)prp);
}
- p = (Properties)prp;
+ if (prp != null) {
+ p = (Properties)prp;
+ }
return (J)this;
}