java.util.NoSuchElementException

No value present

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web101

  • via GitHub by Geotan00
    ,
  • via GitHub by FluuxyTv
    ,
  • Stack trace

    • java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:135)[?:1.8.0_111] at io.github.geotan00.bowta.PlayerInteractListener.onPlayerInteract(PlayerInteractListener.java:38)[PlayerInteractListener.class:?] at org.spongepowered.common.event.listener.SecondaryListener_PlayerInteractListener_onPlayerInteract96.handle(Unknown Source)[?:?] at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)[RegisteredListener.class:1.11.2-6.0.0-BETA-198] at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:305)[SpongeEventManager.class:1.11.2-6.0.0-BETA-198] at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:320)[SpongeEventManager.class:1.11.2-6.0.0-BETA-198] at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:144)[SpongeImpl.class:1.11.2-6.0.0-BETA-198] at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractItemEventSecondary(SpongeCommonEventFactory.java:423)[SpongeCommonEventFactory.class:1.11.2-6.0.0-BETA-198] at org.spongepowered.common.network.PacketUtil.firePreEvents(PacketUtil.java:250)[PacketUtil.class:1.11.2-6.0.0-BETA-198] at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:89)[PacketUtil.class:1.11.2-6.0.0-BETA-198] at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjd000(SourceFile:539)[fo$1.class:?] at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13)[fo$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[?:1.8.0_111] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_111] at net.minecraft.util.Util.func_181617_a(SourceFile:46)[h.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:1526)[MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFile:335)[lh.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:562)[MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(SourceFile:466)[MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_111]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown UserUnknown User
    Once,
    jf-astjf-ast
    Once,
    batwalrus76batwalrus76
    Once,
    stigkjstigkj
    11 times, last one
    arturgajowyarturgajowy
    Once,
    12 more bugmates