You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2019/12/17 20:54:20 UTC

[royale-compiler] 02/02: InterfaceDefinition: fixed null reference exception in isInstanceOf()

This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit 1c9d160bf487e7abde4e936b4e5cb2c40075ec1e
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Tue Dec 17 11:46:04 2019 -0800

    InterfaceDefinition: fixed null reference exception in isInstanceOf()
---
 .../royale/compiler/internal/definitions/InterfaceDefinition.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/definitions/InterfaceDefinition.java b/compiler/src/main/java/org/apache/royale/compiler/internal/definitions/InterfaceDefinition.java
index 3dd6e87..2886795 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/definitions/InterfaceDefinition.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/definitions/InterfaceDefinition.java
@@ -179,7 +179,7 @@ public class InterfaceDefinition extends TypeDefinitionBase implements IInterfac
             return true;
 
         //  An interface is an instance of Object by definition.
-        if (type.equals(project.getBuiltinType(BuiltinType.OBJECT)))
+        if (project.getBuiltinType(BuiltinType.OBJECT).equals(type))
             return true;
 
         // Since 'this' is an interface, 'type' must also be an interface.