File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/src/main/java/it/niedermann/owncloud/notes/edit Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -390,6 +390,11 @@ protected void saveNote(@Nullable ISyncCallback callback) {
390390 * Opens a dialog in order to chose a category
391391 */
392392 private void showCategorySelector () {
393+ if (note == null ) {
394+ Log .e (TAG , "note is null, showCategorySelector" );
395+ return ;
396+ }
397+
393398 final var fragmentId = "fragment_category" ;
394399 final var manager = requireActivity ().getSupportFragmentManager ();
395400 final var frag = manager .findFragmentByTag (fragmentId );
@@ -405,6 +410,11 @@ private void showCategorySelector() {
405410 * Opens a dialog in order to chose a category
406411 */
407412 public void showEditTitleDialog () {
413+ if (note == null ) {
414+ Log .e (TAG , "note is null, showEditTitleDialog" );
415+ return ;
416+ }
417+
408418 saveNote (null );
409419 final var fragmentId = "fragment_edit_title" ;
410420 final var manager = requireActivity ().getSupportFragmentManager ();
You can’t perform that action at this time.
0 commit comments