Hello. I have recently been developing a plugin and I keep getting a NullPointerException error around this chunk of code: I understand that a NullPointerException error is due to something wanted to be accessed however it is equal to null. But I can't seem to find out where this is happening. Here is the actual error returned: Any help would be appreciated. Thanks.