Skip to content

Commit

Permalink
'sepinf-inc#2088 Ignores null pointer exception when tooltip text doe…
Browse files Browse the repository at this point in the history
…s not exists

in resource files.
  • Loading branch information
patrickdalla committed Jun 6, 2024
1 parent 67ddfe4 commit 774a427
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,13 @@ public void stateChanged(ChangeEvent e) {
}
contentPanel.add(c, getGridBagConstraints(1, currentLine, 1, 1));
String tooltipKey = configurable.getClass().getName()+"."+propertie+Messages.TOOLTIP_SUFFIX;
String toolTipText = Messages.getString(tooltipKey ,config.getComments(propertie));
if(toolTipText!=null) {
c.setToolTipText(toolTipText);
try {
String toolTipText = Messages.getString(tooltipKey, config.getComments(propertie));
if (toolTipText != null) {
c.setToolTipText(toolTipText);
}
} catch (Exception e) {
// tooltip does not exists in resources
}
//
textFieldList.put(propertie, c);
Expand Down

0 comments on commit 774a427

Please sign in to comment.