Skip to content

[Bug] happy_ghast_one_cm bug (Empty String) #175

@DereC4

Description

@DereC4

Running the /stats top command for the statistic happy_ghast_one_cm causes the plugin to throw a NullPointerException in the console

Expected Behavior The server should display the top statistics for happy_ghast_one_cm without any errors.

Actual Behavior The command fails

[18:16:57 INFO]: derex_ issued server command: /stats happy_ghast_one_cm top
[18:16:58 WARN]: Exception in thread "StatThread-derex_-3" java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "text" is null
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.lib.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerImpl$Cereal.component(LegacyComponentSerializerImpl.java:326)
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.lib.kyori.adventure.text.flattener.ComponentFlattenerImpl$BuilderImpl.lambda$mapper$0(ComponentFlattenerImpl.java:193)
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.lib.kyori.adventure.text.flattener.ComponentFlattenerImpl.flatten0(ComponentFlattenerImpl.java:126)
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.lib.kyori.adventure.text.flattener.ComponentFlattenerImpl.flatten(ComponentFlattenerImpl.java:91)
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.lib.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerImpl.serialize(LegacyComponentSerializerImpl.java:271)
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.core.msg.MessageBuilder.textComponentToString(MessageBuilder.java:73)
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.core.msg.OutputManager.textComponentToString(OutputManager.java:88)
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.core.statistic.BukkitProcessor.processTopRequest(BukkitProcessor.java:66)
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.core.statistic.StatRequestManager.execute(StatRequestManager.java:45)
[18:16:58 WARN]:        at PlayerStats-2.5 (1).jar//com.artemis.the.gr8.playerstats.core.multithreading.StatThread.run(StatThread.java:58)

-DerexXD

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions