[
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
{code}
/**
* @constructor
* @implements {IArrayLike<string>}
* @see https://dom.spec.whatwg.org/#interface-domtokenlist
*/
function DOMTokenList() {}
{code}
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
(v6.3.4#6332)