2
java - Is null check needed before calling instanceof - Stack Overflow (stackoverflow.com)