• v1.1.7 8d70f99e54

    Willowcrest Practice v1.1.7
    Some checks failed
    Java CI with Maven / build (push) Has been cancelled
    Stable

    crypt released this 2026-08-28 03:19:33 +00:00 | 6 commits to main since this release

    Fixes

    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