• Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None

      An NPE is thrown for signs with certain text on them. I have uploaded 3 different files: The code to a command used for testing this in a plugin, the screenshot of the offending sign and the relevant log of the bukkit minecraft server.

      I have also created a gist showing the diff of MapView.java for debugging purposes: https://gist.github.com/AlphaBlend/483f0089dc533c6521916623a6895998/revisions

      The logs in log.txt are based on the modifications made in MapView.java. The offending line of code is:

      result += chars.get(text.charAt(i)).getWidth();
      

      I have also created a World Edit schematic of the sign. The JSON for the text of the sign was saved as: http://pastebin.com/99WmyDCe (I don't think JIRA would like JSON in code tags)

      The text entered on the sign is:

      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      ..........................................A
      ............43564343434
      4354354.........zzZZ!!!

      This issue might be a vanilla issue, but since this involved bukkit code, I figure I'd at least try here.

        1. 2016-08-31_12.30.41.png
          2016-08-31_12.30.41.png
          262 kB
        2. command.txt
          0.8 kB
        3. log.txt
          13 kB

            Assignee:
            Unassigned
            Reporter:
            Joel Paulien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: