Servoy 4.0 BR error saving record

Hi All,

I have this insert method that works fine in Servoy 3.5.5, but somehow it errors in Servoy 4.0:

function Insert_e();Insert_e();()
{
if ( examiner != null && asr_date != null) 
{ 

 databaseManager.saveData()
////////////////////
var array = databaseManager.getFailedRecords() ; 
if (array[0] == null) 
{ 
plugins.dialogs.showInfoDialog( "Hi", "Record was saved", 'Ok') ; 
} 
else 
{ 
for ( var i = 0 ; i < array.length ; i++ ) 
{ 
var record = array[i]; 
var alert = application.output(record.exception); 
plugins.dialogs.showErrorDialog( "Error", "Error saving record. Please check all the fields.", 'OK'); 
databaseManager.rollbackEditedRecords() ; 
} 

} 
} 
else 
{ 
plugins.dialogs.showErrorDialog( "Data Missing", "Record not inserted. Please check all the fields.", 'OK'); 
} 

}

Here is the error:

An internal error occurred during: “Launching globals.js”.
java.lang.NullPointerException

Thanks for any help.

Abrahim

that error doesnt seem to be related with your script
That error is reporting that the debugger failed to start.

Do you have more info in your log file? (it can also be the .log in the ./metadata dir)

Hi Johan,

After restarting the Servoy developer the error is gone, so far things are running ok :D

Thanks,

Abrahim