Skip to content
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

fix the error that the parameter regionCache of class PacketPlayerLoginRsp is null in game only mode #2297

Merged

Conversation

happyelements01
Copy link
Contributor

Description

running in game only mode will get the following error

java.lang.NullPointerException: Cannot invoke "emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass$QueryCurrRegionHttpRsp.getRegionInfo()" because "emu.grasscutter.server.packet.send.PacketPlayerLoginRsp.regionCache" is null
at emu.grasscutter.server.packet.send.PacketPlayerLoginRsp.(PacketPlayerLoginRsp.java:50)
at emu.grasscutter.server.packet.recv.HandlerPlayerLoginReq.handle(HandlerPlayerLoginReq.java:48)
at emu.grasscutter.server.game.GameServerPacketHandler.handle(GameServerPacketHandler.java:91)
at emu.grasscutter.server.game.GameSession.handleReceive(GameSession.java:221)
at emu.grasscutter.server.game.GameSessionManager$1.lambda$handleReceive$0(GameSessionManager.java:72)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
at io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:833)

@KingRainbow44 KingRainbow44 merged commit 4b167fc into Grasscutters:development Aug 20, 2023
2 checks passed
Simplxss pushed a commit to Simplxss/Grasscutter that referenced this pull request Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants