Edivad99 / SolarGeneration

Produce energy from the sun, use your head for recharging your inventory. This is a mod for minecraft
GNU Affero General Public License v3.0
7 stars 9 forks source link

cant join server 1.18.2-forge- java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because the return value of "org.apache.maven.artifact.versioning.ArtifactVersion.getQualifier()" is null #30

Closed SDUBZ closed 2 years ago

SDUBZ commented 2 years ago

Is there an existing issue for this?

Describe the bug

I have been testing with a local server and I get this error

[11:11:59] [Render thread/WARN] [ed.so.Main/]: Unable to check the version 11:11:59.268 game java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because the return value of "org.apache.maven.artifact.versioning.ArtifactVersion.getQualifier()" is null 11:11:59.268 game at edivad.solargeneration.setup.EventHandler.handlePlayerLoggedInEvent(EventHandler.java:24) ~[SolarGeneration-1.18.2-4.1.0.jar%23289!/:4.1.0] {re:classloading} 11:11:59.268 game at net.minecraftforge.eventbus.ASMEventHandler_1671_EventHandler_handlePlayerLoggedInEvent_LoggedInEvent.invoke(.dynamic) ~[?:?] {} 11:11:59.268 game at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-5.0.3.jar%232!/:?] {} 11:11:59.268 game at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?] {} 11:11:59.268 game at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?] {}

here is some logs im not sure whats causing it client: debug.log latest.log

Server: debug.log latest.log

How can I reproduce this bug or crash?

have mod on server and client try to join said server and get same error

Configuration

- Mod version: SolarGeneration-1.18.2-4.1.0
- Forge version: 40.1.0
- Minecraft version: 1.18.2

Relevant log output

[11:11:59] [Render thread/WARN] [ed.so.Main/]: Unable to check the version
11:11:59.268
game
java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because the return value of "org.apache.maven.artifact.versioning.ArtifactVersion.getQualifier()" is null
11:11:59.268
game
at edivad.solargeneration.setup.EventHandler.handlePlayerLoggedInEvent(EventHandler.java:24) ~[SolarGeneration-1.18.2-4.1.0.jar%23289!/:4.1.0] {re:classloading}
11:11:59.268
game
at net.minecraftforge.eventbus.ASMEventHandler_1671_EventHandler_handlePlayerLoggedInEvent_LoggedInEvent.invoke(.dynamic) ~[?:?] {}
11:11:59.268
game
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-5.0.3.jar%232!/:?] {}
11:11:59.268
game
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?] {}
11:11:59.268
game
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?] {}
11:11:59.268
game
at net.minecraftforge.client.ForgeHooksClient.firePlayerLogin(ForgeHooksClient.java:951) ~[forge-1.18.2-40.1.0-universal.jar%23329!/:?] {re:mixin,re:classloading}
11:11:59.268
game
at net.minecraft.client.multiplayer.ClientPacketListener.m_5998_(ClientPacketListener.java:363) ~[client-1.18.2-20220404.173914-srg.jar%23325!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:computing_frames,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:blue_skies.mixins.json:ClientPacketListenerMixin,pl:mixin:APP:fastsuite.mixins.json:ClientPacketListenerMixin,pl:mixin:APP:ftbchunks-common.mixins.json:ClientPacketListenerMixin,pl:mixin:APP:iceberg.mixins.json:ClientPacketListenerMixin,pl:mixin:APP:journeymap.mixins.json:client.ClientPacketListenerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
11:11:59.268
game
at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(ClientboundLoginPacket.java:83) ~[client-1.18.2-20220404.173914-srg.jar%23325!/:?] {re:mixin,re:classloading}
11:11:59.268
game
at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(ClientboundLoginPacket.java:19) ~[client-1.18.2-20220404.173914-srg.jar%23325!/:?] {re:mixin,re:classloading}
11:11:59.268
game
at net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:22) ~[client-1.18.2-20220404.173914-srg.jar%23325!/:?] {re:classloading}
11:11:59.268
game
at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157) ~[client-1.18.2-20220404.173914-srg.jar%23325!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
11:11:59.268
game
at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.18.2-20220404.173914-srg.jar%23325!/:?] {re:mixin,re:computing_frames,re:classloading}

Anything else?

client: debug.log latest.log

Server: debug.log latest.log