Fixed NullPointerException

Now only Java Objects that have a non-private default constructor are
initialized. If they don't, null is assigned.