- if (text == null)
- text = String.Empty;
- Log.LogWarning (null, code, helpKeyword, BuildEngine.ProjectFileOfTaskNode,
+ if (String.IsNullOrEmpty (text))
+ return true;
+
+ Log.LogWarning (null, code, helpKeyword,
+ String.IsNullOrEmpty (File) ? BuildEngine.ProjectFileOfTaskNode : File,