Skip to main content
Participating Frequently
March 26, 2012
Question

iOS default native extension packaging null pointer exception

  • March 26, 2012
  • 24 replies
  • 9736 views

I have an ANE that currently has a specific implementation for Android and a default implementation. Packaging up the .apk for android works fine on my android devices and packaging up a windows destop version (I created a separate desktop air application to do this) that uses the default ANE implementation works fine.

The problem is when trying to packaging the ipa for iOS that uses the ANE. I get the following error when I try a "Export Release Build" of my mobile app for iOS. It should be using the default ANE implementation.

Error occurred while packaging the application:

Warning: Using default implementation for native extension '<my ane extension id here>'

unexpected failure: null

java.lang.NullPointerException

    at com.adobe.png.PNGUtils.updatePNGMetadata(PNGUtils.java:60)

    at com.adobe.air.ipa.IPAOutputStream.addFile(IPAOutputStream.java:557)

    at com.adobe.air.ADTOutputStream.addFileFromStream(ADTOutputStream.java:299)

    at com.adobe.air.ADTOutputStream.addFileFromStream(ADTOutputStream.java:292)

What is missing? I've successfully packaged IPAs before but they didn't use any ANEs. This app will eventually have it's own iOS ANE implementation but it should just use the default if there is no iOS implementation available.

Randy

This topic has been closed for replies.

24 replies

March 27, 2012

Packaging IPA with default implementation for native extension doesn't work with AIR 3.1.

It will be fixed in the next release.

August 10, 2012

This is fixed with AIR 3.4.

Participating Frequently
August 30, 2012

I just tried this and am getting a different null pointer exception. I overlaid FlashBuilder with AIR 3.4 as per these instructions: http://www.jasonsturges.com/2012/08/overlay-adobe-air-3-4-sdk-in-flash-builder-4-6/

I didn't see anything obvious in the release notes about changing any compiler options for ANEs. Is there anything special that should be specified to get default ANEs packaged for iOS? Maybe something additional needs to be implemented in the default package?

Here is the null pointer exception. forgive any typos as I had to retype the exception from the popup dialog.

java.lang.NullPointerException

  at com.adobe.air.ipa.IPAOutputStream.addExtensionAbc(IPAOutputStream.java:1031)

  at com.adobe.air.ipa.IPAPackager.addExtensions(IPAPackager.java:351)

  at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:68)

  at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:245)

  at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)

Randy