RFR: 8375011: OldJTable.java - NullPointerException when columnData is null [v4]
duke
duke at openjdk.org
Thu Jan 29 10:12:11 UTC 2026
On Thu, 29 Jan 2026 03:23:49 GMT, Anupam Dev <adev at openjdk.org> wrote:
>> Hi,
>>
>> This is a fix for NPE in OldJTable.addColumn
>>
>> The addColumn method in OldJTable.java was unconditionally calling columnData.toArray(), which caused a NullPointerException when columnData was null (e.g., when called from addColumn(Object, int)).
>>
>> This commit adds a null check to safe-guard against this NPE, passing null to the underlying DefaultTableModel when columnData is missing.
>>
>> Kindly review.
>>
>> Regards,
>> Anupam
>
> Anupam Dev has updated the pull request incrementally with one additional commit since the last revision:
>
> Removed obsolete OldJTable from demo
@anupamdev20
Your change (at version 7723e2b1e64d66a0f3664f65450238f6e94f3d23) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29226#issuecomment-3816680843
More information about the client-libs-dev
mailing list