When Server is null, there is no check to see if it is null, so a NullPointerException is thrown. The documentation for the lotus.domino API states that null is used to indicate the local computer.
Example:
Database database = session.getDatabase(null, it)
It makes it easier to "upgrade" if this is consistent (and it's probably wise to handle the Nullpointer anyways)
Bjørn Cintra