Check if content == null and if so throw NullPointerException