fixed NPE when formatter type is not set
This commit is contained in:
parent
44fdd8359c
commit
eb3e86297c
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue