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

Commit ca910337 authored by alperozturk's avatar alperozturk Committed by backportbot[bot]
Browse files

npe checks

parent 6d2b74fe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ import androidx.preference.PreferenceManager;

import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.owncloud.android.lib.common.utils.Log_OC;

import it.niedermann.owncloud.notes.R;
import it.niedermann.owncloud.notes.branding.BrandingUtil;
@@ -182,7 +183,8 @@ public class NoteEditFragment extends SearchableBaseNoteFragment {
    @Override
    protected void onNoteLoaded(Note note) {
        super.onNoteLoaded(note);
        if (binding == null) {
        if (binding == null || note == null) {
            Log_OC.w(TAG, "Note is null, onNoteLoaded");
            return;
        }