Merge "Detect and throw exception for using objects after explicitly destroying them."

This commit is contained in:
Jason Sams
2010-09-21 15:43:30 -07:00
committed by Android (Google) Code Review

View File

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