[1.8.8] Scoreboard Animation ERROR

Discussion in 'Spigot Plugin Development' started by TheDaChicken, Apr 24, 2017.

  1. What's on line 1949 of Main.java


    Sent from my iPhone using Tapatalk
     
  2. Objective objective = board.getObjective("Something here");
    1948: player.setScoreboard(
    1949: objective.getScoreboard());
     
  3. Hmmm a null pointer exception means you're trying to access something that is null, on that line objective or getScoreboard is null


    Sent from my iPhone using Tapatalk
     
  4. Ok Thanks for the help
     
  5. I still get the same error
    I change it to
    player.setscoreboard(board);
    But board is not null
    but the objective might be null
     
  6. You sure? Do some system.out.println(board.somevariable);

    Something is definitely null causing your problem


    Sent from my iPhone using Tapatalk
     
  7. I fixed it! The objective was null! Thanks! for helping me