PlayerInteractEvent NPE

Discussion in 'Plugin Development' started by Pella, Aug 14, 2017.

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

    Pella

    Hello everyone,

    Please can you tell me why this issue is still generating in my console ? I am trying to create own plugin but I hate this error message: [​IMG] http://imgur.com/a/QkkSW

    and line 157 is here
    [​IMG] http://imgur.com/a/MHHCa

    Thank you so much I have no idea how to fix it
     
  2. Online

    timtower Administrator Administrator Moderator

    @Pella There might not be a clicked block.
    The block might not be a sign.
     
  3. Offline

    Pella

  4. Offline

    Zombie_Striker

    @Pella
    The clicked block will not always be a sign. You need to make sure the type is a sign before you cast the state to a sign.

    BTW: If the action is right click block, the block will never be null.
     
Thread Status:
Not open for further replies.

Share This Page