New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.util.concurrent.ExecutionException: java.lang.NullPointerException #172

Open
Godvil opened this Issue Nov 18, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@Godvil
Copy link

Godvil commented Nov 18, 2018

Base informations

Minecraft version: 1.12.2

DiscordIntegration version: DiscordIntegration-mc1.12.2-3.0.5

Server type and version: forge-1.12.2-14.23.5.2768

Link to pastebin with (censored) config: Optional

Expected behavior

"commands": [{
"name": "whitelist",
"cmd": "/whitelist %args%",
"enabled": true,
"roles": ["role:CENSORED"]
}]

Discord channel:
!whitelist reload
Should execute server command.

Actual behavior

[08:57:02] [Server thread/FATAL] [VF]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_191]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_191]
        at net.minecraft.util.Util.runTask(SourceFile:531) [h.class:?]
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:723) [MinecraftServer.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:397) [nz.class:?]
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
Caused by: java.lang.NullPointerException
        at chikachi.discord.core.config.discord.CommandConfig.buildCommand(CommandConfig.java:63) ~[CommandConfig.class:?]
        at chikachi.discord.listener.DiscordListener.lambda$tryExecuteCommand$5(DiscordListener.java:217) ~[DiscordListener.class:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_191]
        at net.minecraft.util.Util.runTask(SourceFile:529) ~[h.class:?]
        ... 5 more

Steps to reproduce

@Godvil

This comment has been minimized.

Copy link
Author

Godvil commented Nov 18, 2018

Role permission is represented as role ID, not the role name. Using role name acts the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment