On Tue, 3 Aug 2021 08:23:19 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
> In the JTable demo, if we double click on the first cell in the Favorite > Number column, delete the value and click on some > other cell, a java.lang.NullPointerException is getting thrown. > The flaw is in the TableDemo's TableModel getColumnClass() method which > queries the value of cell 0 in the target column, and returns its Class. This > logic seems to be flawed - an NPE will be thrown when the value in cell 0 is > null. > Fix by checking for null. This pull request has now been integrated. Changeset: 64d18d45 Author: Prasanta Sadhukhan <psadhuk...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/64d18d45ef885d5cdd893b7f56236d3f22b4b84c Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod 4819544: SwingSet2 JTable Demo throws NullPointerException Reviewed-by: pbansal, aivanov ------------- PR: https://git.openjdk.java.net/jdk/pull/4969