pater context null pointer solved