Commit 5435985a authored by Guillaume Surrel's avatar Guillaume Surrel
Browse files

Fix: avoid possible ClassCastException

parent 5642e71a
......@@ -28,6 +28,7 @@ import java.util.List;
import java.util.Properties;
import java.util.Vector;
import org.objectweb.joram.shared.messages.ConversionHelper;
import org.objectweb.joram.shared.messages.Message;
public class MonitoringAcquisition implements AcquisitionHandler {
......@@ -48,7 +49,7 @@ public class MonitoringAcquisition implements AcquisitionHandler {
Enumeration e = properties.keys();
while (e.hasMoreElements()) {
String name = (String) e.nextElement();
String attributes = (String) properties.get(name);
String attributes = ConversionHelper.toString(properties.get(name));
elements.add(new MonitoringElement(name, attributes));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment