prevent nullpointer in error presenter