Share

MockMaker

Tracker: Bugs

5 NPE when verifying a null parameter - ID: 1837018
Last Update: Tracker Item Submitted ( nobody )

I'm getting a NPE instead of a VerifyFailedException using:

verifyCallableStatementParameter(PROCEDURE_NAME, 3, null);


The problem is that you are using "object.toString()" to build the message
for the VerifyFailedException (and object is null)

I'm using mockrunner 0.4


The stacktrace:

java.lang.NullPointerException
at
com.mockrunner.jdbc.JDBCTestModule.verifyCallableStatementParameter(JDBCTes
tModule.java:2073)
at
com.mockrunner.jdbc.BasicJDBCTestCaseAdapter.verifyCallableStatementParamet
er(BasicJDBCTestCaseAdapter.java:1055)


Thanks a lot.


Nobody/Anonymous ( nobody ) - 2007-11-23 12:17

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.