Reply To: Outbound rule for Internationalize your URLs

Splash Forums Rewrite Users Outbound rule for Internationalize your URLs Reply To: Outbound rule for Internationalize your URLs

#27122

brnovais
Participant

Yeah, sure. I can try to give you more information. I don’t know how to get the full stack trace without modifying your code.

So, at LocaleTransposition:164 you (probably you 🙂 call:
String targetLang = (String) Parameters.retrieve(context, this.languageParam);
The problem here, is that targetLang is being returned as null. So, next line at translate, bundleMap is throwing a NullPointerException.

Well, digging a little more, I found out that at DefaultParameterValueStore:73 is probably where the null is coming from. There we have a map = {}. I think that is happening because ContextBase:41 is returning an empty map.

org.ocpsoft.rewrite.param.Parameters:24
return ((ParameterValueStore) context.get(ParameterValueStore.class)).retrieve(((ParameterStore) context.get(ParameterStore.class)).get(string));