You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2007/03/09 18:04:22 UTC
svn commit: r516465 -
/webservices/muse/trunk/modules/muse-wsdm-muws-impl/src/org/apache/muse/ws/dm/muws/remote/MetricsClient.java
Author: danj
Date: Fri Mar 9 09:04:21 2007
New Revision: 516465
URL: http://svn.apache.org/viewvc?view=rev&rev=516465
Log:
had to add a check for length() > 0 to code that reads XML attributes because xerces returns empty strings
(not null) for non-existent attributes.
Modified:
webservices/muse/trunk/modules/muse-wsdm-muws-impl/src/org/apache/muse/ws/dm/muws/remote/MetricsClient.java
Modified: webservices/muse/trunk/modules/muse-wsdm-muws-impl/src/org/apache/muse/ws/dm/muws/remote/MetricsClient.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsdm-muws-impl/src/org/apache/muse/ws/dm/muws/remote/MetricsClient.java?view=diff&rev=516465&r1=516464&r2=516465
==============================================================================
--- webservices/muse/trunk/modules/muse-wsdm-muws-impl/src/org/apache/muse/ws/dm/muws/remote/MetricsClient.java (original)
+++ webservices/muse/trunk/modules/muse-wsdm-muws-impl/src/org/apache/muse/ws/dm/muws/remote/MetricsClient.java Fri Mar 9 09:04:21 2007
@@ -113,10 +113,10 @@
//
try
{
- if (resetAt != null)
+ if (resetAt != null && resetAt.length() > 0)
metrics.put(MuwsConstants.RESET_AT, XsdUtils.getLocalTime(resetAt));
- if (lastUpdated != null)
+ if (lastUpdated != null && lastUpdated.length() > 0)
metrics.put(MuwsConstants.LAST_UPDATED, XsdUtils.getLocalTime(lastUpdated));
}
@@ -125,7 +125,7 @@
throw new SoapFault(error.getMessage(), error);
}
- if (duration != null)
+ if (duration != null && duration.length() > 0)
metrics.put(MuwsConstants.DURATION, duration);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org