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

Commit b20694ab authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Add nullptr check" into oc-mr1-dev

parents 1ca7d063 3885bf6f
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;
    }