JDK-6499736 : NPE is thrown from XToolkit.getScreenInsets() if no window manager is present
Type:Bug
Component:client-libs
Sub-Component:java.awt
Affected Version:7,7u10
Priority:P4
Status:Closed
Resolution:Fixed
OS:linux,solaris
CPU:generic,x86
Submitted:2006-12-01
Updated:2024-03-06
Resolved:2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
In XToolkit.getScreenInsets() the first check is that _NET protocol is active, with 'if (!netProto.active())'. However, this check throws NPE is netProto is NULL, that occurs with no WM present in the system.
Comments
EVALUATION
The bug is introduced with the fix for 4737732 (screen insets).