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

Godvil opened this Issue Nov 18, 2018 · 1 comment


None yet
1 participant
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-

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 ~[?:1.8.0_191]
        at java.util.concurrent.FutureTask.get( ~[?:1.8.0_191]
        at net.minecraft.util.Util.runTask(SourceFile:531) [h.class:?]
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities( [MinecraftServer.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities( [nz.class:?]
        at net.minecraft.server.MinecraftServer.tick( [MinecraftServer.class:?]
        at [MinecraftServer.class:?]
        at [?:1.8.0_191]
Caused by: java.lang.NullPointerException
        at chikachi.discord.core.config.discord.CommandConfig.buildCommand( ~[CommandConfig.class:?]
        at chikachi.discord.listener.DiscordListener.lambda$tryExecuteCommand$5( ~[DiscordListener.class:?]
        at ~[?:1.8.0_191]
        at net.minecraft.util.Util.runTask(SourceFile:529) ~[h.class:?]
        ... 5 more

Steps to reproduce


This comment has been minimized.

Copy link

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