cominixo / BetterF3

A Fabric mod for Minecraft that provides a highly customizable, more human-readable Debug HUD.
MIT License
137 stars 34 forks source link

[Bug]: Unexpected error "Cannot invoke "String.split(String)" because "string" is null" #106

Closed Nekogamer90 closed 2 years ago

Nekogamer90 commented 2 years ago

Describe the Bug

Whenever I press F3 normally, the game crashes and gives the message in the log, "Cannot invoke "String.split(String)" because "string" is null".

Steps to Reproduce

Unknown, press F3

Expected Behavior

The game to crashes

Screenshots

No response

Modloader Type

Fabric

Modloader Version

Fabric 0.14.9

Mod Version

BetterF3 1.2.5

Log Output

---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 8/27/22, 6:49 PM
Description: Unexpected error

java.lang.NullPointerException: Cannot invoke "String.split(String)" because "string" is null
    at Not Enough Crashes deobfuscated stack trace.(1.18.2+build.4)
    at me.cominixo.betterf3.utils.Utils.formattedFromString(Utils.java:129)
    at me.cominixo.betterf3.utils.DebugLineList.toTexts(DebugLineList.java:46)
    at me.cominixo.betterf3.modules.BaseModule.linesFormatted(BaseModule.java:138)
    at net.minecraft.client.gui.hud.DebugHud.newLeftText(DebugHud:1731)
    at net.minecraft.client.gui.hud.DebugHud.handler$zkp000$renderLeftText(DebugHud:1902)
    at net.minecraft.client.gui.hud.DebugHud.renderLeftText(DebugHud)
    at net.minecraft.client.gui.hud.DebugHud.render(DebugHud:117)
    at net.minecraft.client.gui.hud.InGameHud.render(InGameHud:297)
    at net.minecraft.client.render.GameRenderer.render(GameRenderer:858)
    at net.minecraft.client.MinecraftClient.render(MinecraftClient:1122)
    at net.minecraft.client.MinecraftClient.run(MinecraftClient:737)
    at fudge.notenoughcrashes.mixinhandlers.InGameCatcher.handleClientCrash(InGameCatcher.java:37)
    at net.minecraft.client.MinecraftClient.modify$dkl000$atTheEndOfSecondCatchBeforePrintingCrashReport(MinecraftClient:18521)
    at net.minecraft.client.MinecraftClient.run(MinecraftClient:764)
    at net.minecraft.client.main.Main.main(Main:236)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at me.cominixo.betterf3.utils.Utils.formattedFromString(Utils.java:129)
    at me.cominixo.betterf3.utils.DebugLineList.toTexts(DebugLineList.java:46)
    at me.cominixo.betterf3.modules.BaseModule.linesFormatted(BaseModule.java:138)
    at net.minecraft.class_340.newLeftText(class_340.java:1731)
    at net.minecraft.class_340.handler$zkp000$renderLeftText(class_340.java:1902)
    at net.minecraft.class_340.method_1847(class_340.java)
    at net.minecraft.class_340.method_1846(class_340.java:117)
    at net.minecraft.class_329.method_1753(class_329.java:297)

-- Affected level --
Details:
    All players: 1 total; [class_746['LordQuazz'/257, l='ClientLevel', x=126.07, y=81.00, z=392.99]]
    Chunk stats: 1024, 258
    Level dimension: minecraft:overworld
    Level spawn location: World: (80,76,368), Section: (at 0,12,0 in 5,4,23; chunk contains blocks 80,-64,368 to 95,319,383), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
    Level time: 41262 game time, 41262 day time
    Server brand: fabric
    Server type: Non-integrated multiplayer server
Stacktrace:
    at net.minecraft.class_638.method_8538(class_638.java:407)
    at net.minecraft.class_310.method_1587(class_310.java:2376)
    at net.minecraft.class_310.method_1514(class_310.java:761)
    at fudge.notenoughcrashes.mixinhandlers.InGameCatcher.handleClientCrash(InGameCatcher.java:37)
    at net.minecraft.class_310.modify$dkl000$atTheEndOfSecondCatchBeforePrintingCrashReport(class_310.java:18521)
    at net.minecraft.class_310.method_1514(class_310.java:764)
    at net.minecraft.client.main.Main.main(Main.java:236)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Last reload --
Details:
    Reload number: 1
    Reload reason: initial
    Finished: Yes
    Packs: Default, Fabric Mods, Black Icons, Classic Icons, Create Legacy Copper, White Icons, continuity/default, continuity/glass_pane_culling_fix, ABBPBR-03 x128.zip, Bare Bones x Fresh Animations 1.6.zip, Broken_Tools_V2_1.18.zip, EclecticTrove-noconfig-1.18-1.2.0.zip, illuminations/lowerres, illuminations/pixelaccurate, immersive_weathering/better_brick_blocks, immersive_weathering/better_brick_items, immersive_weathering/biome_tinted_mossy_blocks, immersive_weathering/visual_waxed_iron_items, minecraft/supporteatinganimation

-- System Details --
Details:
    Minecraft Version: 1.18.2
    Minecraft Version ID: 1.18.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 17.0.1, Microsoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
    Memory: 383228688 bytes (365 MiB) / 1853882368 bytes (1768 MiB) up to 4294967296 bytes (4096 MiB)
    CPUs: 12
    Processor Vendor: AuthenticAMD
    Processor Name: AMD Ryzen 5 3600 6-Core Processor              
    Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
    Microarchitecture: unknown
    Frequency (GHz): 3.60
    Number of physical packages: 1
    Number of physical CPUs: 6
    Number of logical CPUs: 12
    Graphics card #0 name: NVIDIA GeForce GTX 1050 Ti
    Graphics card #0 vendor: NVIDIA (0x10de)
    Graphics card #0 VRAM (MB): 4095.00
    Graphics card #0 deviceId: 0x1c82
    Graphics card #0 versionInfo: DriverVersion=27.21.14.5751
    Memory slot #0 capacity (MB): 16384.00
    Memory slot #0 clockSpeed (GHz): 2.67
    Memory slot #0 type: DDR4
    Virtual memory max (MB): 23153.95
    Virtual memory used (MB): 18524.61
    Swap memory total (MB): 6844.24
    Swap memory used (MB): 498.32
    JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m
    Fabric Mods: 
        appleskin: AppleSkin 2.4.1+mc1.18.2
        architectury: Architectury 4.9.83
        betterf3: BetterF3 1.2.5
        bhmenu: BHMenu-Fabric 1.17.1-1.18.2-1.3
        charm: Charm 4.2.2
            com_moandjiezana_toml_toml4j: toml4j 0.7.2
        chime: Chime 1.2.1
        chimes: Chimes 1.1.1
        cloth-config: Cloth Config v6 6.2.62
            cloth-basic-math: cloth-basic-math 0.6.1
        clumps: Clumps 8.0.0+15
        continuity: Continuity 2.0.1+1.18.2
        crafttweaker: CraftTweaker 9.1.177
            org_javassist_javassist: javassist 3.29.0-GA
            org_reflections_reflections: reflections 0.10.2
        crawl: Crawl 0.10.6
            mm: Manningham Mills 2.3
        create: Create 0.5.0c-708
            com_google_code_findbugs_jsr305: jsr305 3.0.2
            fake-player-api: Fake Player API 0.3.0
            flywheel: Flywheel 0.6.4-30
            forge_tags: Forge Tags 2.1
            milk: Milk Lib 0.3.2
                dripstone_fluid_lib: Dripstone Fluid Lib 1.2.0
            noindium: No Indium? 1.0.1+1.18.2
            porting_lib: Porting Lib 1.2.421-beta+1.18.2-dev.b8d195a
                serialization_hooks: Serialization Hooks 0.3.21
            reach-entity-attributes: Reach Entity Attributes 2.1.1
            registrate-fabric: Registrate for Fabric MC1.18.2-1.1.3
                com_github_llamalad7_mixinextras: MixinExtras 0.0.11
        createaddition: Create Crafts & Additions ${version}
            team_reborn_energy: Energy 2.2.0
        creatures_from_the_warmths: Creatures From The Warmths 2.1.0+1.18.2
        duckling: Duckling 1.0.6
        eatinganimationid: Eating Animation 1.8
        ecologics: Ecologics 1.7.9
        effective: Effective 1.2.1
        entityculling: EntityCulling-Fabric 1.5.1
        fabric: Fabric API 0.58.0+1.18.2
            fabric-api-base: Fabric API Base 0.4.4+d7c144a860
            fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.2+2373a54560
            fabric-biome-api-v1: Fabric Biome API (v1) 8.0.6+651bcc5960
            fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.12+3ac43d9560
            fabric-command-api-v1: Fabric Command API (v1) 1.1.9+d7c144a860
            fabric-commands-v0: Fabric Commands (v0) 0.2.8+b4f4f6cd60
            fabric-containers-v0: Fabric Containers (v0) 0.1.23+d7c144a860
            fabric-content-registries-v0: Fabric Content Registries (v0) 3.1.1+c85f2e3860
            fabric-convention-tags-v1: Fabric Convention Tags 1.0.1+474e4f7960
            fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.1+ee261a3e60
            fabric-data-generation-api-v1: Fabric Data Generation API (v1) 3.0.1+9fcb91d260
            fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.20+489d6f8260
            fabric-entity-events-v1: Fabric Entity Events (v1) 1.4.8+d7c144a860
            fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.19+d7c144a860
            fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.19+d7c144a860
            fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.13+d7c144a860
            fabric-item-api-v1: Fabric Item API (v1) 1.5.2+17cbbd4360
            fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.14+91896a4960
            fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.12+54e5b2ec60
            fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.10+b4f4f6cd60
            fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.1.0+cc71601c60
            fabric-loot-api-v2: Fabric Loot API (v2) 1.1.0+1997ad1260
            fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.2+e747827960
            fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.4+cc71601c60
            fabric-models-v0: Fabric Models (v0) 0.3.6+d7c144a860
            fabric-networking-api-v1: Fabric Networking API (v1) 1.0.23+2d30af4b60
            fabric-networking-v0: Fabric Networking (v0) 0.3.10+b4f4f6cd60
            fabric-object-builder-api-v1: Fabric Object Builder API (v1) 2.1.3+032c981d60
            fabric-particles-v1: Fabric Particles (v1) 0.2.12+526dc1ac60
            fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.9.10+0d9ab37260
            fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.13+d882b91560
            fabric-renderer-indigo: Fabric Renderer - Indigo 0.5.3+41a02c8a60
            fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.11+b4f4f6cd60
            fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.7+d7c144a860
            fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 2.0.2+54e5b2ec60
            fabric-rendering-v0: Fabric Rendering (v0) 1.1.13+b4f4f6cd60
            fabric-rendering-v1: Fabric Rendering (v1) 1.10.7+54e5b2ec60
            fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.0.3+91b7aa6660
            fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.5.2+446e059560
            fabric-screen-api-v1: Fabric Screen API (v1) 1.0.10+d882b91560
            fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.2.2+1f6558e860
            fabric-textures-v0: Fabric Textures (v0) 1.0.12+3ac43d9560
            fabric-transfer-api-v1: Fabric Transfer API (v1) 1.6.3+f4563ac860
            fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 1.1.0+e747827960
        fabric-language-kotlin: Fabric Language Kotlin 1.8.2+kotlin.1.7.10
            org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.7.10
            org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.7.10
            org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.7.10
            org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.7.10
            org_jetbrains_kotlinx_atomicfu-jvm: atomicfu-jvm 0.18.2
            org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.6.4
            org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.6.4
            org_jetbrains_kotlinx_kotlinx-datetime-jvm: kotlinx-datetime-jvm 0.4.0
            org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.3.3
            org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.3.3
            org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.3.3
        fabricloader: Fabric Loader 0.14.9
        farmersdelight: Farmer's Delight 1.18.2-1.2.1
        faux-custom-entity-data: Faux-Custom-Entity-Data 1.0.4
        ferritecore: FerriteCore 4.2.1
        forgeconfigapiport: Forge Config API Port 3.2.4
            com_electronwill_night-config_core: core 3.6.5
            com_electronwill_night-config_toml: toml 3.6.5
        friendsandfoes: Friends&Foes 1.4.5
        geckolib3: Geckolib 3.0.59
            com_eliotlash_mclib_mclib: mclib 18
            com_eliotlash_molang_molang: molang 18
        goblintraders: Goblin Traders 1.5.1
        iceberg: Iceberg 1.0.38
        illuminations: Illuminations 1.10.4
        immersive_armors: Immersive Armors 1.3.8
        immersive_weathering: Immersive Weathering 2.5.6
        impactfulweather: Biome Particle Weather 4.0.21-1.18.2
        indium: Indium 1.0.7+mc1.18.2
        ingredient-extension-api: Ingredient Extension API 2.0.7
        inmis: Inmis 2.6.0-1.18.2
            omega-config: OmegaConfig 1.2.3-1.18.1
        inventoryhotswap: Inventory Hotswap 1.3.0
        inventoryhud: Inventory HUD + 3.4.2
        inventoryprofilesnext: Inventory Profiles Next 1.6.5
        inventorysorter: Inventory Sorter 1.8.8-1.18
            kyrptconfig: Kyrpt Config 1.4.6-1.18
                blue_endless_jankson: jankson 1.2.1
        iris: Iris 1.2.6
            org_anarres_jcpp: jcpp 1.4.14
        jade: Jade 5.99.9
        java: OpenJDK 64-Bit Server VM 17
        jei: Just Enough Items 10.1.3.240
        krypton: Krypton 0.1.9
            com_velocitypowered_velocity-native: velocity-native 1.1.0-SNAPSHOT
        lambdynlights: LambDynamicLights 2.1.0+1.17
            pride: Pride Lib 1.1.0+1.17
            spruceui: SpruceUI 3.3.0+1.17
                org_aperlambda_lambdajcommon: lambdajcommon 1.8.1
        legendarytooltips: Legendary Tooltips 1.2.5
        levelz: LevelZ 1.3.3
            libgui: LibGui 5.3.0+1.18
                jankson: Jankson 4.0.0+j1.2.0
                libninepatch: LibNinePatch 1.1.0
        medievalweapons: Medieval Weapons 1.2.0
        memoryleakfix: Memory Leak Fix 1.18.2-0.7.0
        minecraft: Minecraft 1.18.2
        missingwilds: Missing Wilds 1.1.0
            advanced_runtime_resource_pack: Runtime Resource Pack 0.5.7
        modid: Creatures Of The Snow 2.1.0+1.18.2
        modmenu: Mod Menu 3.2.3
        morebannerfeatures: More Banner Features 1.1.3
        morevillagers: More Villagers 3.3.2
        mousetweaks: Mouse Tweaks 2.22
        naturalist: Naturalist 1.1.1
        nears: Nears 1.1.8
        notenoughanimations: NotEnoughAnimations 1.6.0
        notenoughcrashes: Not Enough Crashes 4.1.6+1.18.2
        observable: Observable 2.2.3
        owo: oωo 0.7.2-no-cme+1.18
        oxidized: Oxidized 1.6.4
        pandemonium: Requiem: Pandemonium 2.0.0-beta.8
            pandemoniumapi: Requiem: Pandemonium-API 2.0.0-beta.8
        patchouli: Patchouli 1.18.2-71.1-FABRIC
            fiber: fiber 0.23.0-2
        ratsmischief: Rat's Mischief 1.3.7
        requiem: Requiem 2.0.0-beta.9
            automatone: Automatone 0.7.0
            blabber: Blabber 0.2.0
            cardinal-components-base: Cardinal Components API (base) 4.1.3
            cardinal-components-entity: Cardinal Components API (entities) 4.1.3
            cardinal-components-scoreboard: Cardinal Components API (scoreboard) 4.1.3
            cardinal-components-world: Cardinal Components API (worlds) 4.1.3
            fabric-permissions-api-v0: fabric-permissions-api 0.1-SNAPSHOT
            fiber2cloth: Fiber To Cloth 3.1.1
            impersonate: Impersonate 2.5.0
            locki: Locki 0.7.0
            playerabilitylib: Pal 1.5.0
            requiem-core: Requiem-Core 2.0.0-beta.9
            requiemapi: Requiem-API 2.0.0-beta.9
            satin: Satin 1.7.2
        rpgdifficulty: Rpg Difficulty 1.0.12
            cloth-api: Cloth API 3.2.64
                cloth-client-events-v0: Cloth Client Events v0 3.2.64
                cloth-common-events-v1: Cloth Common Events v1 3.2.64
                cloth-datagen-api-v1: Cloth Datagen v1 3.2.64
                cloth-scissors-api-v1: Cloth Scissors API v1 3.2.64
                cloth-utils-v1: Cloth Utils v1 3.2.64
        sextant: Immersive Travel Overhaul 1.2
        skinlayers: 3d Skin Layers 1.4.6-mc1.18.2
        smoothchunk: Smooth chunk save Mod 1.18.2-1.9
        sodium: Sodium 0.4.1+build.15
            org_joml_joml: joml 1.10.2
        steves_vanilla: Steves Vanilla 1.1.0+1.18
        terrablender: TerraBlender 1.1.0.102
        things: Things 0.2.18+1.18
        thonkutil: ThonkUtil 2.14.1+1.18
            thonkutil-base: ThonkUtil Base 1.12.2+23c1dc2c60
            thonkutil-capes-v1: ThonkUtil Capes (v1) 1.3.2+9e23427060
            thonkutil-coords-v1: ThonkUtil Coords (v1) 1.0.19+9b80223760
            thonkutil-customization-v1: ThonkUtil Customization (v1) 1.0.14+9b80223760
            thonkutil-legacy: ThonkUtil Legacy 1.0.20+9b80223760
            thonkutil-modchecker-v1: ThonkUtil ModChecker (v1) 1.0.12+9b80223760
            thonkutil-potions-v0: ThonkUtil Potions (v0) 1.4.1+9b80223760
            thonkutil-titlescreen-v1: ThonkUtil TitleScreen (v1) 1.1.9+9b80223760
            thonkutil-trades-v1: ThonkUtil Trades (v1) 1.1.20+9b80223760
        toms_storage: Tom's Simple Storage Mod 1.3.4
        trinkets: Trinkets 3.3.1
        twigs: Twigs 1.1.3-patch2+1.18.2
        visuality: Visuality 0.4.2
            goosik-config: goosik-config 0.2.0
            tlcosmetica: Cosmetica 0.4.0
        voicechat: Simple Voice Chat 1.18.2-2.3.7
        waystones: Waystones 2.5.5+mc1.18.2
        wildbackport: TheWildBackport 1.2.1
    Loaded Shaderpack: (off)
    Flywheel Backend: GL33 Instanced Arrays
    Launched Version: fabric-loader-0.14.9-1.18.2
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: GeForce GTX 1050 Ti/PCIe/SSE2 GL version 3.2.0 NVIDIA 457.51, NVIDIA Corporation
    Window size: 1024x733
    GL Caps: Using framebuffer using OpenGL 3.2
    GL debug messages: id=1280, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_ENUM error generated. Polygon modes for <face> are disabled in the current profile.' x 2
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fabric'
    Type: Client (map_client.txt)
    Graphics mode: fancy
    Resource Packs: vanilla, Fabric Mods, Black Icons, Classic Icons, Create Legacy Copper, White Icons, continuity/default, continuity/glass_pane_culling_fix, file/ABBPBR-03 x128.zip, file/Bare Bones x Fresh Animations 1.6.zip, file/Broken_Tools_V2_1.18.zip, file/EclecticTrove-noconfig-1.18-1.2.0.zip, illuminations/lowerres, illuminations/pixelaccurate, immersive_weathering/better_brick_blocks, immersive_weathering/better_brick_items, immersive_weathering/biome_tinted_mossy_blocks, immersive_weathering/visual_waxed_iron_items, minecraft/supporteatinganimation
    Current Language: English (US)
    CPU: 12x AMD Ryzen 5 3600 6-Core Processor 
    Client Crashes Since Restart: 2
    Integrated Server Crashes Since Restart: 0
    Suspected Mods: Minecraft (minecraft), Fabric Loader (fabricloader), Not Enough Crashes (notenoughcrashes), BetterF3 (betterf3)

Additional Context

No response