Description
After upgrading from 2.5.2 to 2.5.10 I get a NullPointerException when calling getText("myKey") in an utility class like this:
Example
public class ListGenerator extends ActionSupport { public final List<String> getValues() { final List<String> result = new ArrayList<>(); result.add(getText("select.header")); result.add(getText("register.female")); result.add(getText("register.male")); return result; } }
java.lang.NullPointerException at com.opensymphony.xwork2.ActionSupport.getLocale(ActionSupport.java:64)
....
ERROR org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception occurred during processing request: java.lang.NullPointerException