Loading unified diff of file with whitespace only changes and ignore whitespace fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 5.6.0
    • Affects Version/s: 4.8.6, 4.9.1, 4.10.2, 4.11.2, 5.5.0, 5.3.4, 5.4.2, 5.0.9, 5.1.8, 5.2.6
    • None
    • Severity 3 - Minor

      When attempting to view the diff of a file that contains only whitespace changes with "Ignore whitespace" turned on the diff fails to load and the spinner remains. The following JavaScript error will appear on the console:

      Uncaught TypeError: Cannot read property 'hunks' of undefined

      Workaround

      • Go to the diff for an unaffected file
      • Turn off "Ignore whitespace" in the menu at the top of the diff

            Assignee:
            Marcin
            Reporter:
            Marcin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: