Skip to content

Commit

Permalink
#142 - remove cast on add attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Aug 17, 2017
1 parent 2aa60fb commit d7ade37
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ public Model.Page getOrCreatePage(Model.Page parentPage, String title) throws Ex

@Override
public Model.Attachment addAttachment(Model.Page page, Model.Attachment attachment, InputStream source) throws Exception {
final Page p = cast(page);
//final Page p = cast(page);

if( p.getId() == null ) {
if( page.getId() == null ) {
throw new IllegalStateException("PageId is null. Attachment cannot be added!");
}

Expand Down

0 comments on commit d7ade37

Please sign in to comment.