PaperCommandManager causing Timings NPE
See original GitHub issueThis should possibly be in minecraft-timings, but the PaperCommandManager seems to be causing an NPE on initialisation. This seems to relate to CustomTimingsHandler
being used, even though the class co.aikar.timings.Timing
is definitely present at runtime.
Running: Paper 1.15.2, latest build ACF-Paper 0.5.0 latest build,
java.lang.NullPointerException: null
at org.spigotmc.CustomTimingsHandler.<init>(CustomTimingsHandler.java:79) ~[patched_1.15.2.jar:git-Paper-245]
at me.bristermitten.powertools.acf.commands.lib.timings.SpigotTiming.<init>(SpigotTiming.java:11) ~[?:?]
at me.bristermitten.powertools.acf.commands.lib.timings.TimingType$1.newTiming(TimingType.java:11) ~[?:?]
at me.bristermitten.powertools.acf.commands.lib.timings.TimingManager.of(TimingManager.java:72) ~[?:?]
at me.bristermitten.powertools.acf.commands.lib.timings.TimingManager.of(TimingManager.java:38) ~[?:?]
at me.bristermitten.powertools.acf.commands.BukkitCommandManager.<init>(BukkitCommandManager.java:97) ~[?:?]
at me.bristermitten.powertools.acf.commands.PaperCommandManager.<init>(PaperCommandManager.java:33) ~[?:?]
at me.bristermitten.powertools.PowerTools.setupCommands(PowerTools.kt:40) ~[?:?]
at me.bristermitten.powertools.PowerTools.onEnable(PowerTools.kt:20) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.15.2.jar:git-Paper-245]
Apologies if this belongs somewhere else
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Code keeps thowing a NPE, cannot find the cause
The code is bailing out on one of these two lines: Display display = getWindowManager().getDefaultDisplay(); public int windowWidth ...
Read more >Releases · Incendo/cloud - GitHub
Fix concurrent cause of execution exception not being wrapped right (#326) ... Issue where suggestions were shown multiple times when using Brigadier (#184) ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Keep in mind with the latest update you also have to relocate locales. https://github.com/aikar/commands/wiki/Gradle-Setup
Yeah, I was relocating
co.aikar
instead ofco.aikar.commands
. This is now fixed, thanks for the help!