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

Commit ccdde0bf authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Camera: Catch a null exception

parent fb31398f
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -1483,7 +1483,10 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
        for(Map.Entry<Integer, Bitmap> entry : preloaded_bitmap_resources.entrySet()) {
        for(Map.Entry<Integer, Bitmap> entry : preloaded_bitmap_resources.entrySet()) {
            if( MyDebug.LOG )
            if( MyDebug.LOG )
                Log.d(TAG, "recycle: " + entry.getKey());
                Log.d(TAG, "recycle: " + entry.getKey());
            entry.getValue().recycle();
            Bitmap recycleValue = entry.getValue();
            if (recycleValue != null) {
                recycleValue.recycle();
            }
        }
        }
        preloaded_bitmap_resources.clear();
        preloaded_bitmap_resources.clear();
        if( textToSpeech != null ) {
        if( textToSpeech != null ) {