Assigning default value to worldType - avoiding NullPointerException