try to protect against an NPE seen in the logs,
I assume current was null, apply same instanceof check as related methods already do.
1 file changed