SONARPLUGINS-2908 Fix NPE