Fixes a warning/a possible NullPointerException.