MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
967 stars 133 forks source link

NullPointerException when open Interface Builder in IntelliJ #679

Closed avazquezdev closed 2 years ago

avazquezdev commented 2 years ago

Issue details

NullPointerException when try open Interface Builder in IntelliJ when define multiple paths (variant) for frameworks. By deleting frameworkPaths, it opens correctly.

Reproduction steps/code

Build Tools:

Versions:

Stacktrace

java.lang.NullPointerException
    at org.robovm.compiler.config.Config.isQualified(Config.java:770)
    at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176)
    at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
    at org.robovm.compiler.config.Config.getFrameworkPaths(Config.java:464)
    at org.robovm.ibxcode.IBXcodeProject.resolveFrameworks(IBXcodeProject.java:210)
    at org.robovm.ibxcode.IBXcodeProject.generate(IBXcodeProject.java:95)
    at org.robovm.idea.ibxcode.RoboVmIbXcodeProjectTask$TaskThread.run(RoboVmIbXcodeProjectTask.java:233) 
dkimitsa commented 2 years ago

hi, thanks for reporting. fix proposed in https://github.com/MobiVM/robovm/pull/680

avazquezdev commented 2 years ago

Great, Thanks! I will try the fix in the next snapshot version