mx4j/src/core/mx4j/remote DefaultRemoteNotificationServerHandler.java,1.11,1.12
Simone Bordet <[email protected]> Wed, 23 Feb 2005 08:36:57 +0000
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/core/mx4j/remote
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13252/src/core/mx4j/remote
Modified Files:
DefaultRemoteNotificationServerHandler.java
Log Message:
Avoiding NPEs if properties are not present in the environment
Index: DefaultRemoteNotificationServerHandler.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/mx4j/remote/DefaultRemoteNotificationServerHandler.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** DefaultRemoteNotificationServerHandler.java 13 Nov 2004 16:38:20 -0000 1.11
--- DefaultRemoteNotificationServerHandler.java 23 Feb 2005 08:36:54 -0000 1.12
***************
*** 15,18 ****
--- 15,19 ----
import java.util.List;
import java.util.Map;
+
import javax.management.Notification;
import javax.management.NotificationFilter;
***************
*** 206,210 ****
try
{
! maxCapacity = ((Integer)environment.get(MX4JRemoteConstants.NOTIFICATION_BUFFER_CAPACITY)).intValue();
}
catch (Exception ignored)
--- 207,212 ----
try
{
! Integer maxCapacityInteger = (Integer)environment.get(MX4JRemoteConstants.NOTIFICATION_BUFFER_CAPACITY);
! if (maxCapacityInteger != null) maxCapacity = maxCapacityInteger.intValue();
}
catch (Exception ignored)
***************
*** 214,218 ****
try
{
! purgeDistance = ((Integer)environment.get(MX4JRemoteConstants.NOTIFICATION_PURGE_DISTANCE)).intValue();
}
catch (Exception ignored)
--- 216,221 ----
try
{
! Integer purgeDistanceInteger = (Integer)environment.get(MX4JRemoteConstants.NOTIFICATION_PURGE_DISTANCE);
! if (purgeDistanceInteger != null) purgeDistance = purgeDistanceInteger.intValue();
}
catch (Exception ignored)
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click