startActivity(intent) error

The function works fine was 10 months ago.

Now, I have an error.

public void onStarted(com.ansca.corona.CoronaRuntime runtime) 

{

    Intent intent = new Intent(com.ansca.corona.CoronaEnvironment.getCoronaActivity(), DRMCheck.class);

    intent.addFlags(intent.FLAG_ACTIVITY_NEW_TASK);

    com.ansca.corona.CoronaEnvironment.getApplicationContext().startActivity(intent);

}

or

public void onStarted(com.ansca.corona.CoronaRuntime runtime)

{

    Context context = com.ansca.corona.CoronaEnvironment.getApplicationContext();

    Intent intent = new Intent(context, DRMCheck.class);

    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

    context.startActivity(intent);

}

V/Corona  (22471): > Class.forName: plugin.fuse.LuaLoader

I/Corona  (22471): root start

I/Corona  (22471): root suspend

I/Corona  (22471): Runtime error

I/Corona  (22471): ?:0: attempt to index upvalue ‘?’ (a nil value)

I/Corona  (22471): stack traceback:

I/Corona  (22471): ?: in function ‘func’

I/Corona  (22471): /Users/jenkins/slaveroot/workspace/Enterprise/OS/xcode-6.3/release/release/platform/resources/init.lua:241: in function </Users/jenkins/slaveroot/workspace/Enterprise/OS/xcode-6.3/release/release/platform/resources/init.lua:221>