04-11-2013, 05:14 PM
how can i add a language : CHINESE("cn"),
in overword codes
always thanks
run server then
throwexception in l2p.gameserver.data.htm.HtmCache.java
in overword codes
always thanks
Код:
package l2p.gameserver.utils;
/**
* @author VISTALL
* @date 13:50/29.03.2011
*/
public enum Language
{
CHINESE("cn"),
ENGLISH("en"),
RUSSIAN("ru");
public static final Language[] VALUES = Language.values();
private String _shortName;
Language(String shortName)
{
_shortName = shortName;
}
public String getShortName()
{
return _shortName;
}
}
run server then
throwexception in l2p.gameserver.data.htm.HtmCache.java
Код:
public void clear()
{
for(int i = 0; i < _cache.length; i++)
{
_cache[i].removeAll(); // <-- nullpointerexception
}
}