NPE in RealmsBase corrected