Description
When we use --help with bin/admin or bin/instance script, we get a NullPointException.
It's due to the fact that no CommandSession exist and so methods that use CommandSession properties (like isGlobalScope() and isMultiScopeMode() in NameScoping) throw NPE.
We should prevent this NPE.