Added warning message for NULL values