0

I'm using java on Eclipse

Servlet.service() for servlet [ecarssServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause 

at kr.co.ECarSS.www.carmin.service.CarDevServiceImpl.carDevExcelRegister(CarDevServiceImpl.java:118)

SO

String terDes = "유심:" + excelData.get("일반유심").toString().replace(" ", "");
terDes += ", S/N:" + excelData.get("모뎀S/N").toString().replace(" ", "");
                terDes += ", " + excelData.get("턴키").toString().replace(" ", "");
                terDes += " 개통일자:" + excelData.get("개통일자").toString().replace("-", ".");
                insertData.put("terDes", terDes); 

how to solve this problem

or how to use if(excelData.containsKey)

Pushkin
  • 2,795
  • 1
  • 16
  • 28
  • Could you maybe provide some more information? For example, what is the type of the excelData object that you're using? – Jaeheon Shim Mar 12 '20 at 03:03
  • HashMap excelData = (HashMap) excelList.get(4); HashMap insertData = new HashMap<>(); ArrayList> codeList = new ArrayList<>(); – JUSTIN_K Mar 12 '20 at 04:13

0 Answers0