mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
fixed NPE in FlatUIUtils.isCellEditor() (issue #601)
This commit is contained in:
@@ -210,6 +210,9 @@ public class FlatUIUtils
|
||||
}
|
||||
|
||||
public static boolean isCellEditor( Component c ) {
|
||||
if( c == null )
|
||||
return false;
|
||||
|
||||
// check whether used in cell editor (check 3 levels up)
|
||||
Component c2 = c;
|
||||
for( int i = 0; i <= 2 && c2 != null; i++ ) {
|
||||
|
||||
Reference in New Issue
Block a user