Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Mac Software

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 04-15-2022, 05:22 PM   #2
MikoLone
Junior Member
 
Join Date: Apr 2022
Posts: 2
Default Had the same problem

I had the same problem this morning. In my app, this java code threw a null pointer exception for this line of code.

Code:
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().getBounds();
For some reason, when you have the main monitor set to one that is connected to the dock, getDefualtScreenDevice() returns null.

I was also using java 8.
MikoLone is offline   Reply With Quote
 

Tags
java, main screen

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:18 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.