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

Commit 6aeaf8ad authored by zhuw's avatar zhuw Committed by Arne Coucheron
Browse files

Fix null pointer when copy representantion

add filter

Change-Id: I624079604210042b47c94ac7ce6bb2b5a070e50d
parent 85a78519
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -156,6 +156,7 @@ public class ImagePreset {
    }

    public void updateOrAddFilterRepresentation(FilterRepresentation rep) {
        if (rep == null) return;
        int pos = getPositionForRepresentation(rep);
        if (pos != -1) {
            mFilters.elementAt(pos).useParametersFrom(rep);