> 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

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/29226/files
  - new: https://git.openjdk.org/jdk/pull/29226/files/0605ac5b..7723e2b1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29226&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29226&range=02-03

  Stats: 264 lines in 1 file changed: 0 ins; 264 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/29226.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29226/head:pull/29226

PR: https://git.openjdk.org/jdk/pull/29226

Reply via email to