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

Commit 58d54705 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Change ISE to AssertException, which is more suitable.

Bug: 129139241
Bug: 129721058
Test: Treehugger
Change-Id: I12e97f37a58e1d88731a9bddd933abeb8c1169c1
parent dd07ae57
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ public class CursorWindow extends SQLiteClosable implements Parcelable {
        mName = name != null && name.length() != 0 ? name : "<unnamed>";
        mWindowPtr = nativeCreate(mName, (int) windowSizeBytes);
        if (mWindowPtr == 0) {
            throw new IllegalStateException(); // Shouldn't happen.
            throw new AssertionError(); // Not possible, the native code won't return it.
        }
        mCloseGuard.open("close");
        recordNewWindow(Binder.getCallingPid(), mWindowPtr);
@@ -166,7 +166,7 @@ public class CursorWindow extends SQLiteClosable implements Parcelable {
        mStartPos = source.readInt();
        mWindowPtr = nativeCreateFromParcel(source);
        if (mWindowPtr == 0) {
            throw new IllegalStateException(); // Shouldn't happen.
            throw new AssertionError(); // Not possible, the native code won't return it.
        }
        mName = nativeGetName(mWindowPtr);
        mCloseGuard.open("close");