neptune icon indicating copy to clipboard operation
neptune copied to clipboard

Interfaces

Open drzey opened this issue 2 years ago • 2 comments

When you have an inferface in your code, neptune breaks @Exclude does not change anything

This is the error

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.Class.getName()" because the return value of "java.lang.Class.getSuperclass()" is null at gg.flyte.neptune.command.CommandDispatcher.isListener(CommandDispatcher.java:207) at gg.flyte.neptune.command.CommandDispatcher.(CommandDispatcher.java:56) at gg.flyte.neptune.Neptune.(Neptune.java:30) at gg.flyte.neptune.Neptune$Builder.create(Neptune.java:77)

drzey avatar Aug 24 '23 15:08 drzey

Simple fix would be just adding

if (foundClass.isInterface()) continue;

In the CommandDispacher where you loop thru classes, I've tested the solution and it works :D

drzey avatar Aug 24 '23 18:08 drzey

Really appreciate it

stephendotgg avatar Aug 25 '23 09:08 stephendotgg