Fixed NPE on some JVM's

This commit is contained in:
LexManos 2012-01-12 07:43:55 +00:00
parent e5a16e25df
commit 2309163d92

View file

@ -309,7 +309,7 @@ public class EnumHelper {
else
{
if ((field.getModifiers() & flags) == flags &&
field.getType().getName().equals(valueType))
field.getType().getName().replace('.', '/').equals(valueType)) //Apparently some JVMs return .'s and some don't..
{
valuesField = field;
break;