title: Null pointer exception Java 2d String
body: <p>So I have a string[][] where I want to save some information from my database. Eclipse told me I needed to initialize my string[][], so i said string[]][] = null. Now I get a null pointer exception, but I'm not sure what I'm doing wrong. </p>
  
  <pre><code>try {
              Statement st = con.createStatement();
              String systems[][] = null;
              int firstcounter = 0;
  
              String item = "SELECT ram, cpu, mainboard, cases, gfx FROM computer_system";
  
              ResultSet rs = st.executeQuery(item);
              while (rs.next()){
                  systems[firstcounter][0] = rs.getString("ram");
                  systems[firstcounter][1] = rs.getString("cpu");
                  systems[firstcounter][2] = rs.getString("mainboard");
                  systems[firstcounter][3] = rs.getString("cases");
                  systems[firstcounter][4] = rs.getString("gfx");
                  firstcounter++;
              }
              System.out.println(systems[0][0]);
  </code></pre>