flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christofer Dutz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35050) NullPointerException in compiler.jx
Date Sat, 19 Mar 2016 09:49:33 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15202687#comment-15202687

Christofer Dutz commented on FLEX-35050:

Now I was able to find out which file the error came from "html5" in the js extern project.
As I could see it's trying to get the "IArrayLike" interface a full-text-search got me to

 * @constructor
 * @implements {IArrayLike<string>}
 * @see https://dom.spec.whatwg.org/#interface-domtokenlist
function DOMTokenList() {}

So I guess the "implements" annotation references a class/interface (IArrayLike) which it
can't find the implementation for. But investigating this type of error with a debugger in
the compiler code is a no-go.

> NullPointerException in compiler.jx
> -----------------------------------
>                 Key: FLEX-35050
>                 URL: https://issues.apache.org/jira/browse/FLEX-35050
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>    Affects Versions: Apache FalconJX 0.6.0
>            Reporter: Christofer Dutz
> I am getting NullPointerExceptions in org.apache.flex.compiler.clients.ExternCConfiguration.isExcluded
(Line 343)
> because in org.apache.flex.compiler.internal.codegen.externals.reference.ClassReference
in getInterfaces() in line 482 no check is performed, if the result of getModel().getClassReference(interfaceName)
is not null. This adds "null" to the list of interfaces and when accessed in org.apache.flex.compiler.clients.ExternCConfiguration.isExcluded
I the the NPE. It also makes it impossible to find out why the thing is blowing up.

This message was sent by Atlassian JIRA

View raw message