Skip to content

ExceptionInInitializerError #17

@Level3301

Description

@Level3301

Hi i am getting ExceptionInitializerError with this code:
if (!NameTagChanger.INSTANCE.isEnabled) { //here
NameTagChanger.INSTANCE.enable();
}

Caused by: com.bringholm.nametagchanger.ReflectUtil$ReflectionException: java.lang.NoSuchFieldException: modifiers
	at com.bringholm.nametagchanger.ReflectUtil$ReflectionResponse.getOrThrow(ReflectUtil.java:472) ~[?:?]
	at com.bringholm.nametagchanger.ReflectUtil.<clinit>(ReflectUtil.java:34) ~[?:?]
	... 16 more
Caused by: java.lang.NoSuchFieldException: modifiers
	at java.base/java.lang.Class.getDeclaredField(Class.java:2489) ~[?:?]
	at com.bringholm.nametagchanger.ReflectUtil.getDeclaredField(ReflectUtil.java:104) ~[?:?]
	at com.bringholm.nametagchanger.ReflectUtil.<clinit>(ReflectUtil.java:34) ~[?:?]
	... 16 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions