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

CGBitmapContext.setLineJoin(..) and .setLineCap(..) explode with a NPE #330

Closed
Gilead opened this issue May 8, 2014 · 1 comment
Closed

Comments

@Gilead
Copy link

Gilead commented May 8, 2014

Calling CGBitmapContext.setLineJoin(CGLineJoin) or CGBitmapContext.setLineCap(CGLineCap) explodes with an NPE:

java.lang.NullPointerException
at org.robovm.rt.bro.ValuedEnum$AsSignedIntMarshaler.toNative(ValuedEnum.java)
at org.robovm.apple.coregraphics.CGContext.setLineCap(Native Method)

java.lang.NullPointerException
at org.robovm.rt.bro.ValuedEnum$AsSignedIntMarshaler.toNative(ValuedEnum.java)
at org.robovm.apple.coregraphics.CGContext.setLineCap(Native Method)

There are a few warnings just before, not sure if related:

WARN: Failed to call getClassTypeID() for the CFType subclass org.robovm.apple.corefoundation.CFType
WARN: Failed to call getClassTypeID() for the CFType subclass org.robovm.apple.coregraphics.CGPath
WARN: Failed to call getClassTypeID() for the CFType subclass org.robovm.apple.coregraphics.CGPattern

Using RoboVM .12

@Gilead
Copy link
Author

Gilead commented May 8, 2014

Just tried with the latest version from source (0e36341) and the error is gone. A different warning appeared, though :)
WARN: Failed to call getClassTypeID() for the CFType subclass org.robovm.apple.coregraphics.CGColorSpace

Anyway, closing as it's not an issue any more.

@Gilead Gilead closed this as completed May 8, 2014
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

1 participant