Detect and throw exception for using

objects after explicitly destroying them.

Change-Id: Ic50d6974c80672846140c7f9435ec9468855f0bc
This commit is contained in:
Jason Sams
2010-09-21 14:47:22 -07:00
parent f88c59414b
commit 7aa150c096

View File

@@ -32,6 +32,9 @@ class BaseObj {
}
public int getID() {
if (mDestroyed) {
throw new IllegalStateException("using a destroyed object.");
}
return mID;
}