NPE when URL of a database connection is null

Description

If the URL of a monitored database connection is null (which seems to be a valid case) then the extractURLfromJDBCURL of the ConnectionMetaDataStorage in the agent throws a NullPointerException.

We need a null/empty check here.

Environment

None

Activity

Show:
Technical User
November 4, 2016, 12:54 PM

FAILURE: Integrated in

inspectIT - Integration #214
INSPECTIT-2244: fixed NPE when URL is not specified (patrice.bouillet: fa89e381457ba0422283288111178fb52274a05e)

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/sensor/method/jdbc/ConnectionMetaDataStorage.java

  • (edit) inspectit.agent.java/src/test/java/rocks/inspectit/agent/java/sensor/method/jdbc/JDBCUrlExtractorTest.java

Assignee

Alexander Wert

Reporter

Alexander Wert

Labels

Integrator

Patrice Bouillet

Sprint

None

Fix versions

Priority

Medium
Configure