Prevent a potential NullPointerException.