Skip to content

Commit c146f14

Browse files
committed
npe checks
Signed-off-by: alperozturk <[email protected]>
1 parent c4f93ff commit c146f14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/it/niedermann/owncloud/notes/edit/NoteEditFragment.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton;
3535
import com.google.android.material.floatingactionbutton.FloatingActionButton;
36+
import com.owncloud.android.lib.common.utils.Log_OC;
3637

3738
import it.niedermann.owncloud.notes.R;
3839
import it.niedermann.owncloud.notes.branding.BrandingUtil;
@@ -182,7 +183,8 @@ public void onResume() {
182183
@Override
183184
protected void onNoteLoaded(Note note) {
184185
super.onNoteLoaded(note);
185-
if (binding == null) {
186+
if (binding == null || note == null) {
187+
Log_OC.w(TAG, "Note is null, onNoteLoaded");
186188
return;
187189
}
188190

0 commit comments

Comments
 (0)