Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when open Interface Builder in IntelliJ #679

Closed
1 task done
avazquezdev opened this issue Aug 22, 2022 · 2 comments
Closed
1 task done

NullPointerException when open Interface Builder in IntelliJ #679

avazquezdev opened this issue Aug 22, 2022 · 2 comments

Comments

@avazquezdev
Copy link

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

  • In robovm.xml, Define frameworkPaths with variants for simulator and real devices.
  <frameworkPaths>
    <path variant="device">libs/arm</path>
    <path variant="simulator">libs/sim</path>
  </frameworkPaths>
  • Try open Interface Builder in IntelliJ

Build Tools:

  • IDEA plugin

Versions:

  • Robovm: 2.3.18
  • XCode: 13.4.1
  • JDK: adopt-openj9-11
  • Macbook Air M1

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
Copy link
Contributor

hi, thanks for reporting.
fix proposed in #680

@avazquezdev
Copy link
Author

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

Tom-Ski added a commit that referenced this issue Aug 24, 2022
* fixed #679 -- NPE when opening IB/Xcode due missing sliceArch in config (once qualified libs/frameworks are used)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants