Project

Profile

Help

Revision 4ee4355d

Added by O'Neil Delpratt 5 months ago

Saxon/C bug fixes with exception handling and other

View differences:

src/main/c/Saxon.C.API/SaxonCGlue.c
396 396
/*
397 397
 * Callback to check for exceptions. When called it returns the exception as a string
398 398
 */
399
const char * checkForException(sxnc_environment *environii, jobject callingObject) {
400
	if (callingObject) {} // TODO: Remove the callingObject variable
399
const char * checkForException(sxnc_environment *environii) {
401 400
	if ((*(environii->env))->ExceptionCheck(environii->env)) {
402 401

  
403 402
		jthrowable exc = (*(environii->env))->ExceptionOccurred(environii->env);
......
440 439
		// }
441 440
		(*(environii->env))->ReleaseStringUTFChars(environii->env, name, utfName);
442 441
	}
443
	//(*(environii->env))->ExceptionClear(environii->env);
442

  
444 443
	return 0;
445 444
}
446 445

  

Also available in: Unified diff