[SPIGOT-1889] NullPointerException thrown by JavaPlugin#installDDL(); Created: 11/Mar/16 Updated: 11/Mar/16 Resolved: 11/Mar/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Rhys Kenwell | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Environment: |
Operating System: Windows 10 Home Edition. |
Description |
Hi, I'm trying to make a plugin database using the built in persistence method, and the problem I'm running into is that, in the try block, getDatabase().find(MyClass.class).findRowCount(); is throwing a NullPointerException. When I add that to the caught exceptions, a NullPointerException is thrown in JavaPlugin at line 445 |
Comments |
Comment by md_5 [ 11/Mar/16 ] |
I've added an obvious exception to this effect. |
Comment by Rhys Kenwell [ 11/Mar/16 ] |
Im so dumb >.< I didn't, it works now. Completely forgot that was necessary |
Comment by md_5 [ 11/Mar/16 ] |
Do you have database:true in your plugin.yml? |
Comment by Rhys Kenwell [ 11/Mar/16 ] |
The stack trace: http://hastebin.com/qopivimero.avrasm The code causing it: http://hastebin.com/yosopigila.coffee |
Comment by md_5 [ 11/Mar/16 ] |
Please actually attach the exception and sample reproduction code. |