javamanager/javainstaller/javasifplugin/tsrc/src.s60/main.cpp
changeset 50 023eef975703
parent 49 35baca0e7a2e
child 80 d6dafc5d983f
--- a/javamanager/javainstaller/javasifplugin/tsrc/src.s60/main.cpp	Tue Jul 06 20:36:19 2010 +0300
+++ b/javamanager/javainstaller/javasifplugin/tsrc/src.s60/main.cpp	Fri Jul 09 16:35:45 2010 +0300
@@ -591,7 +591,13 @@
     // TEMP TEST
     // This thread does not have active scheduler,
     // create and install it
-    CActiveScheduler* as = new(ELeave) CActiveScheduler();   
+    CActiveScheduler* as = new CActiveScheduler();
+    if (NULL == as)
+    {
+        ELOG(EJavaConverters,
+            "testsifapi: cancelFunction: Cannot create active scheduler");
+            return 1;
+    }
     CActiveScheduler::Install(as);
 
     // Wait for 6 seconds so that the operation to be cancelled