title: Why do I get java.lang.NullPointerException when I connect via RDP or change the resolution?
body: <p>I'm running a console application under Windows on a remote remote computer.</p>
  
  <p>The following error seems to appears regularly when I log into the remote computer via RDP (Remote Desktop Protocol). It also seems to occur on my local machine when I resize the desktop, or if the nVidia video driver crashes (which is rarely).</p>
  
  <pre><code>java.lang.NullPointerException
  at twslaunch.jtscomponents.effect.i.c(i.java:172)
  at jtscomponents.plaf.ze.run(ze.java:178)
  at java.awt.event.InvocationEvent.dispatch(Unknown Source)
  at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
  at java.awt.EventQueue.access$000(Unknown Source)
  at java.awt.EventQueue$3.run(Unknown Source)
  at java.awt.EventQueue$3.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
  at java.awt.EventQueue.dispatchEvent(Unknown Source)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
  at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  at java.awt.EventDispatchThread.run(Unknown Source)
  </code></pre>
  
  <p>The problem occurs under Windows 7, Windows Server 2008 and both Java v6 and Java v7.</p>