java.lang.NullPointerException

Coderanch | fady zohdy | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception on running

    Coderanch | 2 years ago | fady zohdy
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at SortMountains$NameComparator.compare()
    2. Unknown
      SortMountains$NameComparator.compare
      1. SortMountains$NameComparator.compare(SortMountains.java:8)
      2. SortMountains$NameComparator.compare(SortMountains.java:6)
      2 frames
    3. Java RT
      Collections.sort
      1. java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)
      2. java.util.TimSort.sort(TimSort.java:189)
      3. java.util.TimSort.sort(TimSort.java:173)
      4. java.util.Arrays.sort(Arrays.java:659)
      5. java.util.Collections.sort(Collections.java:217)
      5 frames
    4. Unknown
      SortMountains.main
      1. SortMountains.go(SortMountains.java:26)
      2. SortMountains.main(SortMountains.java:17)
      2 frames