Workaround for unexpected NullPointerException on Eclipse.
diff --git a/pom.xml b/pom.xml
index fb2f5c3..7a81539 100644
--- a/pom.xml
+++ b/pom.xml
@@ -502,6 +502,10 @@
                     </dependency>
                 </dependencies>
                 <configuration>
+                    <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
+                    <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
+                    <testSourceDirectory>${project.build.testSourceDirectory}</testSourceDirectory>
+                    <!-- end: workaround for unexpected NullPointerException on Eclipse -->
                     <configLocation>onos/checkstyle.xml</configLocation>
                     <suppressionsLocation>onos/suppressions.xml
                     </suppressionsLocation>