fixed NPE when formatter type is not set

This commit is contained in:
lkuehne 2003-01-18 17:13:37 +00:00
parent 44fdd8359c
commit eb3e86297c
1 changed files with 3 additions and 1 deletions

View File

@ -423,7 +423,9 @@ public class CheckStyleTask
public AuditListener createListener(Task aTask)
throws IOException
{
if (E_XML.equals(mFormatterType.getValue())) {
if (mFormatterType != null
&& E_XML.equals(mFormatterType.getValue()))
{
return createXMLLogger(aTask);
}
else {