[Bug] Missing locale: nb_NO - java.lang.NullPointerException: null
See original GitHub issueDescribe the bug
[03:04:47] [Network Listener - #1/ERROR] [com.nukkitx.network.raknet.RakNetServer]: An exception occurred in RakNet
java.lang.NullPointerException: null
at org.geysermc.connector.utils.LanguageUtils.getPlayerLocaleString(LanguageUtils.java:107) ~[?:?]
at org.geysermc.connector.utils.LoginEncryptionUtils.showLoginWindow(LoginEncryptionUtils.java:160) ~[?:?]
at org.geysermc.connector.network.UpstreamPacketHandler.handle(UpstreamPacketHandler.java:121) ~[?:?]
at com.nukkitx.protocol.bedrock.packet.SetLocalPlayerAsInitializedPacket.handle(SetLocalPlayerAsInitializedPacket.java:16) ~[?:?]
at com.nukkitx.protocol.bedrock.handler.DefaultBatchHandler.handle(DefaultBatchHandler.java:26) ~[?:?]
at com.nukkitx.protocol.bedrock.BedrockSession.onWrappedPacket(BedrockSession.java:278) ~[?:?]
at com.nukkitx.protocol.bedrock.BedrockRakNetSessionListener.onEncapsulated(BedrockRakNetSessionListener.java:32) ~[?:?]
at com.nukkitx.network.raknet.RakNetSession.onEncapsulatedInternal(RakNetSession.java:307) ~[?:?]
at com.nukkitx.network.raknet.RakNetSession.onOrderedReceived(RakNetSession.java:434) ~[?:?]
at com.nukkitx.network.raknet.RakNetSession.checkForOrdered(RakNetSession.java:412) ~[?:?]
at com.nukkitx.network.raknet.RakNetSession.onRakNetDatagram(RakNetSession.java:405) ~[?:?]
at com.nukkitx.network.raknet.RakNetSession.onDatagram(RakNetSession.java:279) ~[?:?]
at com.nukkitx.network.raknet.RakNetServer$ServerDatagramHandler.channelRead(RakNetServer.java:288) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1422) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:931) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:93) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:700) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:635) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:552) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:514) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050) ~[?:?]
at org.geysermc.platform.bungeecord.shaded.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[?:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
To Reproduce
Log into the server with the norwegian locale.
Expected behavior
Change to deafult locale as set in the config file.
bedrock:
address: ****
port: 19132
motd1:
motd2:
remote:
address: ****
port: 25565
auth-type: online
floodgate-key-file: public-key.pem
command-suggestions: true
passthrough-motd: true
passthrough-player-counts: true
legacy-ping-passthrough: false
ping-passthrough-interval: 3
max-players: 200
debug-mode: false
general-thread-pool: 32
allow-third-party-capes: true
allow-third-party-ears: false
show-cooldown: true
default-locale: en_us
cache-chunks: false
above-bedrock-nether-building: false
metrics:
enabled: true
uuid: *****
config-version: 3
Screenshots / Videos
None
Server Version
Waterfall 366
Geyser Version
1.0.0 (git-master-b103d86) (Java: 1.16.1, Bedrock: 1.16.0)
Minecraft: Bedrock Edition Version
1.16.10 (Android)
Additional Context
Everything works perfectly as long as I choose the English language on the client. I understand that Geyser does not support Norwegian locale, but I had hoped it would set to default when it discovered languages that are not supported.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
I'm getting a java.lang.NullPointerException: null error and I ...
I'm getting a java. lang. NullPointerException: null error and I don't know what is missing - Stack Overflow. Stack Overflow for Teams –...
Read more >Game crashes when I join my server. : r/fabricmc - Reddit
Description: Unexpected error. java.lang.NullPointerException: Cannot read field "field_13073" because "$$0" is null
Read more >Crash on server - Support & Bug Reports - Forge Forums
NullPointerException at java.util.concurrent. ... Features enabled: false Level generator options: Level spawn location: World: (8,64,8), ...
Read more >Undocumented NullPointerException in Locale() constructor
A DESCRIPTION OF THE PROBLEM : When a Locale is created with at least one parameter (in the constructor) being null (instead of...
Read more >Help me. Minecraft unrespond when entering world with Forge
Exception in thread "Thread-12" [23:29] [Thread-12/INFO]: [STDERR]: java.lang.IllegalStateException: Only one OpenAL context may be instantiated ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes - it seems that the Norwegian translation is supposed to be for the language code
nb_no
(we translate for all Bedrock-supported languages), so if you translate anything keep that in mind, please. Thanks for looking into this!It won’t immediately be fixed on Geyser until we update the program with the new strings - but feel free to add strings now!