Update of /cvsroot/clirr/clirr/core/src/java/net/sf/clirr/core/internal/checks
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4922
Modified Files:
InterfaceSetCheck.java
Log Message:
avoid NPE
Index: InterfaceSetCheck.java
===================================================================
RCS file: /cvsroot/clirr/clirr/core/src/java/net/sf/clirr/core/internal/checks/InterfaceSetCheck.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- InterfaceSetCheck.java 21 Aug 2004 11:10:37 -0000 1.4
+++ InterfaceSetCheck.java 22 Aug 2004 06:47:33 -0000 1.5
@@ -75,8 +75,8 @@
JavaClass compatInterface = (JavaClass) iter.getLeft();
JavaClass currentInterface = (JavaClass) iter.getRight();
- if (className.equals(compatInterface.getClassName())
- || className.equals(currentInterface.getClassName()))
+ if (compatInterface != null && className.equals(compatInterface.getClassName())
+ || currentInterface != null && className.equals(currentInterface.getClassName()))
{
// This occurs because an interface has itself in the set of all interfaces.
// We can't just let the test below handle this case because that won't
|