SONARPLUGINS-2507 Fix NPE