Solved java.lang.NullPointerException

Discussion in 'Plugin Development' started by Goksi, May 1, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Goksi

  2. Offline

    timtower Moderator Moderator

  3. Offline

    Goksi

    How could i fix that ?
     
  4. Have a null test before line 29
    Code:
    if ( command == null ) return;
     
  5. Offline

    timtower Moderator Moderator

    @Goksi Start by only using 1 constructor for the class.
    You currently have 2 situations:
    1. plugin is null
    2. command is null
     
  6. Offline

    Goksi

    I fixed it :)
     
Thread Status:
Not open for further replies.

Share This Page