Error parsing CSV line who has no solution
<pre><code>        private static final String[] columns = new String[] {
             "policyID","statecode","county","eq_site_limit","hu_site_limit","fl_site_limit",
             "fr_site_limit","tiv_2011","tiv_2012","eq_site_deductible","hu_site_deductible","fl_site_deductible",
             "fr_site_deductible","point_latitude","point_longitude","line","construction","point_granularity"
        }

        String file = props.getProperty("file");

        ColumnPositionMappingStrategy&lt;Weather&gt; strateg = new ColumnPositionMappingStrategy&lt;Weather&gt;();
        strateg.setType(Weather.class);

        strateg.setColumnMapping(columns);

        CsvToBean&lt;Weather&gt; csv = new CsvToBean&lt;Weather&gt;();
        CSVReader reader = new CSVReader(new FileReader(file),',','\"',1);
        List&lt;Weather&gt; list = csv.parse(strateg, reader);

        for(Object object: list){
            Weather weather = (Weather)object;
            conection.importCsvData(weather);
        }
</code></pre>

<p>and the error is this:</p>

<pre><code> Exception in thread "main" java.lang.RuntimeException: Error parsing CSV line: 1 values: [119736, FL, CLAY COUNTY, 498960, 498960,
 498960, 498960, 498960, 792148.9, 0, 9979.2, 0, 0, 30.102261,
 -81.711777, Residential, Masonry, 1]
            at com.opencsv.bean.CsvToBean.parse(CsvToBean.java:100)
            at com.opencsv.bean.CsvToBean.parse(CsvToBean.java:72)
            at Test.main(Test.java:44)
         Caused by: java.lang.NullPointerException
            at com.opencsv.bean.CsvToBean.processProperty(CsvToBean.java:138)
            at com.opencsv.bean.CsvToBean.processLine(CsvToBean.java:127)
            at com.opencsv.bean.CsvToBean.processLine(CsvToBean.java:106)
            at com.opencsv.bean.CsvToBean.parse(CsvToBean.java:96)
            ... 2 more
</code></pre>

<p>I get this error everytime. IF anybody has an idea will be nice! When i had this error last time, it was because i forgot to put a comma between 2 words on columns.
If you have any idea please write me as soon as possible.
Thank you.</p>