mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fix
This commit is contained in:
@@ -3085,7 +3085,8 @@ public class UIUtil {
|
||||
if (map == null) {
|
||||
lcdContrastValue = 140;
|
||||
} else {
|
||||
lcdContrastValue = ((Integer)map.get(RenderingHints.KEY_TEXT_LCD_CONTRAST));
|
||||
Object o = map.get(RenderingHints.KEY_TEXT_LCD_CONTRAST);
|
||||
lcdContrastValue = (o == null) ? 140 : ((Integer)o);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user