[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.
Java JDK: Java JDK 1.8.0_74
Spigot API version: 1.9-R0.1-SNAPSHOT



 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.

Generated at Thu Mar 27 04:25:27 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.