Skip to content

Commit

Permalink
fixed a potential npe
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerW committed Apr 22, 2012
1 parent bf5f60b commit 37aab95
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ protected void onChange(AjaxRequestTarget target,
{
facade.unLikeWhish(user, object.whish);
}
RequestCycle.get().setResponsePage(target.getPage());
if(target!=null) {
RequestCycle.get().setResponsePage(target.getPage());
}
}

@Override
Expand Down

0 comments on commit 37aab95

Please sign in to comment.