If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: IDEA
Desktop OS - Windows

The build engine keeps returning this error message to me when I am trying 
the ios native code function.

[EDT] 0:0:0,1 - Exception: java.lang.NullPointerException - null
java.lang.NullPointerException
        at userclasses.StateMachine.startApp(StateMachine.java:348)


I have written the following interface

package test;
import com.codename1.system.NativeInterface;
public interface MobileNativeTest extends NativeInterface {
 public void test();
}


Then the native code "test_MobileNativeTestImpl.m" under the native/ios folder


#import "test_MobileNativeTestImpl.h"
@implementation test_MobileNativeTestImpl
-(void)test {

}
@end

And the native code header "test_MobileNativeTestImpl.h" under the 
native/ios folder

#import <Foundation/Foundation.h>
#import "xmlvm.h"
@interface test_MobileNativeTestImpl : NSObject {

}
-(void)test;

@end

Then I run in the main application

MobileNativeTest test = NativeLookup.create(MobileNativeTest.class);
test.test();

Finally send iOS debug build.

Is there anything I have overlooked?


Thanks,

Jensan

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/700cc394-1612-4319-96e0-e8fafccc0913%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to