--- a/javaextensions/wma/sms_cbs/src/smsconnectionimpljni.cpp Fri Sep 17 16:44:34 2010 +0300
+++ b/javaextensions/wma/sms_cbs/src/smsconnectionimpljni.cpp Mon Oct 04 11:29:25 2010 +0300
@@ -68,7 +68,7 @@
JniUtils::throwNewException(aJni, "java/lang/OutOfMemoryError" ,
"Out of memory");
}
- catch (ExceptionBase ex)
+ catch (ExceptionBase &ex)
{
ELOG(EWMA,"WMA : Caught an ExceptionBase exception");
JniUtils::throwNewException(aJni, "java/io/IOException" ,
@@ -136,7 +136,7 @@
numberOfSegments = msgConn->numberOfDataSegments(aType,len,hostPort,
hostaddress,messageData);
}
- catch (ExceptionBase ex)
+ catch (ExceptionBase &ex)
{
JniUtils::throwNewException(aJni, "java/lang/RuntimeException" ,
"Calculating number of segments failed");
@@ -187,7 +187,7 @@
numberOfSegments = msgConn->numberOfDataSegments(aType,length,hostPort,
hostaddress,(const char*)nativeString);
}
- catch (ExceptionBase ex)
+ catch (ExceptionBase &ex)
{
JniUtils::throwNewException(aJni, "java/lang/RuntimeException" ,
"Calculating number of segments failed");