Add protection against reading wrong parameter index in the Prepared statement

Description

The agent logs an error in the secondAfterBody-part when common/sql-parameters.cfg is included in the configuration and the broadleaf heatclinic demo is instrumented:
Error: extracted from line 216 HookDispatcher.java, Agent project

Trace:

Environment

None

Assignee

Ivan Senic

Reporter

Jonas Kunz

Labels

None

Integrator

Patrice Bouillet

Components

Sprint

None

Fix versions

Affects versions

Priority

Low
Configure