Project

Profile

Help

Revision 01d6fdb6

Added by O'Neil Delpratt 5 months ago

Saxon/C development

View differences:

src/main/c/Saxon.C.API/SaxonProcessor.cpp
105 105
    if(exceptionOccurred()) {
106 106
        SaxonProcessor::sxn_environ->env->ExceptionClear();
107 107
    }
108
    std::cerr<< "saxonProc exceptionClear cp0"<<std::endl;
108 109
    if (exception != nullptr) {
109 110
        std::cerr<< "saxonProc exception= "<< exception <<std::endl;
110 111
        delete exception;
......
241 242
    cwd = "";
242 243
    licensei = l;
243 244
    versionStr = nullptr;
245
    exception = nullptr;
244 246

  
245 247
    if (SaxonProcessor::jvmCreatedCPP == 0) {
246 248
        SaxonProcessor::jvmCreatedCPP = 1;
......
647 649
            return nullptr;
648 650
        }
649 651

  
652
        if(proc == nullptr) {
653
            createException("The Java SaxonProcessor object (i.e. cppXQ) is NULL - Possible exception thrown");
654
            return nullptr;
655
        }
656

  
650 657
        jstring jstr = (jstring) (SaxonProcessor::sxn_environ->env->CallStaticObjectMethod(saxonCAPIClass, MID_version,
651 658
                                                                                           proc));
652 659
        const char *tempVersionStr = SaxonProcessor::sxn_environ->env->GetStringUTFChars(jstr, nullptr);

Also available in: Unified diff