summaryrefslogtreecommitdiffstats
path: root/rs/java
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-03-03 19:09:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-03-03 19:09:08 +0000
commit8377a4fd03d4fc367e0cb07af748ae941d9960a9 (patch)
tree3c3d59ae3931f8618989c6fc3492c7e177b2483a /rs/java
parentdd72b6e76c5d5e819809bd3d2ef4ff6f700af759 (diff)
parent78214c9531f936549bd9141ca7a6aa5ac27c8622 (diff)
downloadframeworks_base-8377a4fd03d4fc367e0cb07af748ae941d9960a9.zip
frameworks_base-8377a4fd03d4fc367e0cb07af748ae941d9960a9.tar.gz
frameworks_base-8377a4fd03d4fc367e0cb07af748ae941d9960a9.tar.bz2
Merge "Fix null check for BaseObj.equals."
Diffstat (limited to 'rs/java')
-rw-r--r--rs/java/android/renderscript/BaseObj.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/rs/java/android/renderscript/BaseObj.java b/rs/java/android/renderscript/BaseObj.java
index b386dd7..1372ab7 100644
--- a/rs/java/android/renderscript/BaseObj.java
+++ b/rs/java/android/renderscript/BaseObj.java
@@ -181,6 +181,10 @@ public class BaseObj {
if (this == obj)
return true;
+ if (obj == null) {
+ return false;
+ }
+
if (getClass() != obj.getClass()) {
return false;
}