Please review the fix for IZ 186507 (IllegalArgumentException: Invalid line=-1 or column=0)

Egor Ushakov <[email protected]>
Newsgroups gmane.comp.java.netbeans.reviewers
Message-ID <[email protected]>
Hi,

please review the fix for IZ 186507 (IllegalArgumentException: Invalid 
line=-1 or column=0)

Changeset: http://hg.netbeans.org/cnd-main/rev/f98663729e29

If user click on a file but not open it and then add a new breakpoint 
the exception is raised.
The issue is that 
EditorContextDispatcher.getDefault().getMostRecentFile() may be not null but
EditorContextDispatcher.getDefault().getMostRecentLineNumber() may be <0.
The fix is to add extra check for that the same way it is done in 
debugger core.

Fix is reviewed by Vladimir Voskresensky and verified by QA.

Thanks,
Egor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.