projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
GenericJMX plugin: Suppress "unchecked conversion" warning.
[collectd.git]
/
bindings
/
java
/
org
/
collectd
/
java
/
GenericJMXConfConnection.java
diff --git
a/bindings/java/org/collectd/java/GenericJMXConfConnection.java
b/bindings/java/org/collectd/java/GenericJMXConfConnection.java
index
aced54b
..
887c289
100644
(file)
--- a/
bindings/java/org/collectd/java/GenericJMXConfConnection.java
+++ b/
bindings/java/org/collectd/java/GenericJMXConfConnection.java
@@
-137,7
+137,9
@@
class GenericJMXConfConnection
{
try
{
- this._jmx_connector.close();
+ if (this._jmx_connector != null) {
+ this._jmx_connector.close();
+ }
}
catch (Exception e)
{