Skip to content

Commit

Permalink
Fixes #55
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhorridge committed Oct 17, 2013
1 parent ac1c82e commit de0b3d2
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,11 @@ private AnnotatableThing getAnnotatableThingForObjectId(NoteId noteId) {

@Override
public void deleteNoteAndReplies(NoteId noteId) {
notesManager.deleteNote(noteId.getLexicalForm());
project.getEventManager().postEvent(new NoteDeletedEvent(project.getProjectId(), noteId));
Annotation note = notesManager.getNote(noteId.getLexicalForm());
if (note != null) {
notesManager.deleteNote(noteId.getLexicalForm());
project.getEventManager().postEvent(new NoteDeletedEvent(project.getProjectId(), noteId));
}
}


Expand Down

0 comments on commit de0b3d2

Please sign in to comment.