#28 NPE when verifying a null parameter

closed
None
5
2008-06-27
2007-11-23
Anonymous
No

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)

Discussion

  • Alwin Ibba

    Alwin Ibba - 2007-11-23
    • assigned_to: nobody --> aibba
     
  • Alwin Ibba

    Alwin Ibba - 2007-11-23

    Logged In: YES
    user_id=804648
    Originator: NO

    Will be fixed, thanks

     
  • Alwin Ibba

    Alwin Ibba - 2008-06-27
    • status: open --> closed