-
Willowcrest Practice v1.1.7
StableSome checks failedJava CI with Maven / build (push) Has been cancelledreleased this
2026-08-28 03:19:33 +00:00 | 6 commits to main since this releaseFixes
Fix #2: NPE when MongoDB is not connected
Root cause: wPractice.mongoDatabase was never assigned from MongoConnection.getMongoDatabase() after creating the connection. Every call to wPractice.get().getMongoDatabase() returned null, causing NPEs in Clan.init() and Profile.init().
Secondary issue: MongoConnection constructors swallowed exceptions, so loadSaveMethod() never saw connection failures — the plugin stayed enabled with a null database instead of disabling gracefully.
Fixes:
- Wire wPractice.mongoDatabase from mongoConnection.getMongoDatabase() after connection (with null check)
- Remove swallowed catch in MongoConnection — let exceptions propagate to loadSaveMethod's handler
- Add null guards in Clan.init() and Profile.init() as defense-in-depth
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads