question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PaperCommandManager causing Timings NPE

See original GitHub issue

This 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
darbyjackcommented, May 4, 2020

Yeah, I was relocating co.aikar instead of co.aikar.commands. This is now fixed, thanks for the help!

Keep in mind with the latest update you also have to relocate locales. https://github.com/aikar/commands/wiki/Gradle-Setup

0reactions
knightzmccommented, May 4, 2020

Yeah, I was relocating co.aikar instead of co.aikar.commands. This is now fixed, thanks for the help!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found