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

Commit 3885bf6f authored by John Reck's avatar John Reck
Browse files

Add nullptr check

Bug: 65717856
Test: builds
Change-Id: I188d3366e956f087c6317ae0b56d5fb19a20708d
parent 73c93f02
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -159,9 +159,11 @@ public class Shader {
        if (mNativeInstance == 0) {
            mNativeInstance = createNativeInstance(mLocalMatrix == null
                    ? 0 : mLocalMatrix.native_instance);
            if (mNativeInstance != 0) {
                mCleaner = NoImagePreloadHolder.sRegistry.registerNativeAllocation(
                        this, mNativeInstance);
            }
        }
        return mNativeInstance;
    }