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

org.firebirdsql.encodings.Encoding_NotOneByte has nullpointer dereference [JDBC216] #265

Closed
firebird-automations opened this issue Dec 25, 2011 · 4 comments

Comments

@firebird-automations
Copy link

Submitted by: @mrotteveel

The org.firebirdsql.encodings.Encoding_NotOneByte has nullpointer dereference (so it throws NPE) if the encoding does not actually exist (UnsupportedEncodingException) in some of it methods, in other similar methods it will return null when this occurs.

This needs to be fixed either by throwing a checked or unchecked exception when the UnsupportedEncodingException occurs, always return an expected error value or maybe check the existence of the encoding in the constructor so the object is never available for use when the encoding is not supported.

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

Fixed by refactoring of the Encoding implementation

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

assignee: Roman Rokytskyy [ rrokytskyy ] => Mark Rotteveel [ avalanche1979 ]

Fix Version: Jaybird 2.3 [ 10440 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Resolved [ 5 ] => Closed [ 6 ]

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

No branches or pull requests

2 participants