mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics
This commit is contained in:
@@ -78,7 +78,12 @@ public class CreateFileFromTemplateDialog extends DialogWrapper {
|
||||
|
||||
private String getTemplateName() {
|
||||
//noinspection unchecked
|
||||
return ((Trinity<String, Icon, String>)myKindCombo.getSelectedItem()).third;
|
||||
final Trinity<String, Icon, String> trinity = (Trinity<String, Icon, String>)myKindCombo.getSelectedItem();
|
||||
if (trinity == null) {
|
||||
LOG.error("Model: " + myKindCombo.getModel());
|
||||
}
|
||||
|
||||
return trinity.third;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user