title: jSerialComm SerialPort.getCommPorts() throwing java.lang.ExceptionInInitializerError
body: <p>I'm trying to make a JComboBox list all serial ports that have something plugged in but whenever I try to get a list of the ports my application spits out an error and quits.</p>
  
  <p>The Error:</p>
  
  <pre><code>Exception in thread "main" java.lang.ExceptionInInitializerError
  at me.joezwet.eit.picontroller.PiController.main(PiController.java:49)
  Caused by: java.lang.NullPointerException
  at com.fazecast.jSerialComm.SerialPort.&lt;clinit&gt;(SerialPort.java:70)
  ... 1 more
  </code></pre>
  
  <p>PiController.java:49:</p>
  
  <pre><code>SerialPort[] portNames = SerialPort.getCommPorts();
  </code></pre>
  
  <p>SerialPort:70: (part of jSerialComm library)</p>
  
  <pre><code>for (File listing : directoryListing)
  </code></pre>
  
  <p>From what I can see the list <code>directoryListing</code> isnt being initialized so I found where the variable is being declared:</p>
  
  <pre><code>File directoryListing[] = directory.listFiles();
  </code></pre>
  
  <p>I've spent around 3 hours trying to find a fix so I'd really appreciate some help.</p>