Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 862d6c2c authored by Jason Sams's avatar Jason Sams Committed by Android (Google) Code Review
Browse files

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

parents 55e024a9 7aa150c0
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -32,6 +32,9 @@ class BaseObj {
    }
    }


    public int getID() {
    public int getID() {
        if (mDestroyed) {
            throw new IllegalStateException("using a destroyed object.");
        }
        return mID;
        return mID;
    }
    }