[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: fixlet for PlainView
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] FYI: fixlet for PlainView |
Date: |
Thu, 06 Oct 2005 16:53:22 -0400 |
This fix spans 2 commits because I made some errors in my first one.
Both patches are attached, the one with the "2" at the end of the name
is the second one.
This fixes an NPE in PlainView by basically doing a ( != null) check.
(second patch)
2005-10-06 Anthony Balkissoon <address@hidden>
* javax/swing/text/PlainView.java:
(determineMaxLength): Avoid NPE by checking the Segment that getText
returns. No need to return Math.max (0, maxLineLength) because
maxLineLength is guaranteed to be 0 or greater.
(first patch)
2005-10-06 Anthony Balkissoon <address@hidden>
* javax/swing/text/PlainView.java:
(determineMaxLength): If maxLineLength is -1 we should return 0.
(insertOrRemoveUpdate): Avoid NPE by checking the Segment that
getText returns.
--Tony
PlainViewInsertAndRemoveFix.diff
Description: Text Data
PlainViewInsertAndRemoveFix2.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: fixlet for PlainView,
Anthony Balkissoon <=