Skip to content

Commit 86a4f43

Browse files
committed
Bug fix: #45 (comment)
Fixed NullPointerException that occurred in some tables.
1 parent 469a547 commit 86a4f43

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

sql12/core/doc/changes.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,15 @@ Table cell data popup now offers find, Xml/Json-reformatting and export function
6565

6666
Bug fixes:
6767

68+
https://github.com/squirrel-sql-client/squirrel-sql-code/issues/45#issuecomment-2455169657
69+
Fixed NullPointerException that occurred in some tables.
70+
6871
Saved Session groups management dialog: Fixed IllegalArgumentException when empty was deleted.
6972

7073
Fixed StringIndexOutOfBoundsException when executed SQL contains the German Umlaut sz.
7174

7275
Change tracking, left gutter popup to show deleted changes:
73-
Fixed Nullpointer when popup was too long.
76+
Fixed NullPointerException when popup was too long.
7477

7578
Find in preferences/configurations dialog:
7679
Double clicking any empty node now always shows the preference/configuration.

sql12/core/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/CellRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public Component getTableCellRendererComponent(JTable table, Object value, boole
3838
{
3939
JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
4040

41-
if(null != _dataTypeObject.getHorizontalAlignmentOrNull())
41+
if(null != _dataTypeObject && null != _dataTypeObject.getHorizontalAlignmentOrNull())
4242
{
4343
label.setHorizontalAlignment(_dataTypeObject.getHorizontalAlignmentOrNull());
4444
}

0 commit comments

Comments
 (0)