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

Commit bfc7a118 authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

Merge "Add nullptr check" into oc-mr1-dev am: b20694ab

am: 5fa85b7e

Change-Id: Ieb93edf167a158a1f1759c6ffc6f492eac0b4144
parents ef48ae83 5fa85b7e
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;
    }