You need to deal with PathManager returning null if it hasn't been initialised.