-
Notifications
You must be signed in to change notification settings - Fork 387
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
Update AlignmentTrack.java #1245
Conversation
"insertionRect" needs to be initialized though not displayed. It might cause a null pointer exception in Line 709 "Rectangle iRect = new Rectangle(inputRect.x, insertionRect.y, inputRect.width, insertionRect.height);" when some alignment tracks are displaying insertion markers while others do not.
Update AlignmentTrack.java
Sorry for this PR. |
Maybe we can use "insertionRect.setBounds(rect);" to replace "insertionRect = new Rectangle(rect);" around line 523? |
I'll investigate when I can find time, but do you have steps to reproduce an issue? In what situation did an error occur? |
Here is a genome with two alignment track. One is displaying with “Show Insertion Mark” and the other without selected this option. And when i click this the insertion mark. It will report a null pointer exception that mention above.
Sorry for the inconvenience. |
I can't reproduce the error just loading tracks, only after loading tracks via a session. So I think this is the same error as reported here: #1252. I will close this PR as a duplicate bug report. |
* Upstream changelog: Fixes [https://github.com/igvteam/igv/issues/1252](#1252), [https://github.com/igvteam/igv/pull/1245](#1245)
"insertionRect" needs to be initialized though not displayed.
It might cause a null pointer exception in Line 709 "Rectangle iRect = new Rectangle(inputRect.x, insertionRect.y, inputRect.width, insertionRect.height);"
when some alignment tracks are displaying insertion markers while others do not.