Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible NullPointerException in VariableUpdateRowMapper.map for Types.JAVA_OBJECT #81

Open
dcrissman opened this issue Nov 14, 2014 · 2 comments
Labels

Comments

@dcrissman
Copy link
Member

                case Types.JAVA_OBJECT:
                    Object object = rs.getObject(column.getPosition());
                    if (rs.wasNull()) {
                        object = null;
                    }
                    dyn.put(object, object.getClass(), column);
                    break;

if rs.wasNull returns true then object is set to null. null.getClass will thrown a NPE.

@dcrissman dcrissman added the bug label Nov 14, 2014
@dcrissman
Copy link
Member Author

Should it return a NullType.class in that case? That is the same value Types.NULL would return.

@dcrissman
Copy link
Member Author

For the time being, I commented out the JAVA_OBJECT data value in VariableUpdateRowMapperTest.EasyValueChecker.

This should be uncommented when this issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant