Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-79925

null hitResult when no entity or block is in focus while looking through blocks without the ray trace intersecting the blocks themselves

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 19w03a
    • Minecraft 1.8.4, Minecraft 1.8.6, Minecraft 15w36d, Minecraft 15w45a, Minecraft 15w49a, Minecraft 15w49b, Minecraft 15w50a, Minecraft 15w51a, Minecraft 15w51b, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.2, Minecraft 16w15b, Minecraft 1.9.4, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 17w15a, Minecraft 17w16b, Minecraft 17w17b, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w48a, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w06a, Minecraft 18w09a, Minecraft 18w14b, Minecraft 1.13-pre1, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 19w02a
    • Confirmed

      Game Output

      [16:57:52] [Client thread/ERROR]: Null returned as 'hitResult', this shouldn't happen!
      [16:57:52] [Client thread/WARN]: Null returned as 'hitResult', this shouldn't happen!
      

      How to reproduce

      • Go to a wall which has at least 6 (+1 where you should stand) ladders below or above you
      • Click the mouse
      • Observe that the item in your hand is not swung, and that a warning is printed in the log

      Affects all blocks that allow you to stand in them and punch without hitting them, including:

      • Ladders
      • Vines
      • Iron bars
      • Glass panes
      • Portal blocks
      • ...

      Not restricted to only the vertical axis - can also happen when looking sideways.

      Code analysis

      Code analysis by marcono1234 can be found in this comment.

        1. errors.jpg
          errors.jpg
          67 kB
        2. ladder_bug.png
          ladder_bug.png
          244 kB

            Unassigned Unassigned
            SchelMinecraftLp SchelMinecraft
            Votes:
            11 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: