Updating from RC1 throws NullPointerException
|Reported by:||Nicklas Nordborg||Owned by:||Nicklas Nordborg|
Description (last modified by )
> * Problem 1: using binary BASE 2.0 > When running the 'updatedb.sh' script, java crashes after building the > initial database: > > [0%] Building database........................ > [30%] Database built successfully. > > java.lang.NullPointerException > at net.sf.basedb.core.Update.getSchemaVersion(Update.java:319) > at > net.sf.basedb.core.Update.adjustExistingItems(Update.java:599) > at net.sf.basedb.install.InitDB.main(InitDB.java:66)
The problem is that there is no SchemaVersion information in RC1. It is probably safe to return 0 from that method since if there is no schema version all updates must be executed.