处理java.lang.NullPointerException异常
程序员文章站
2022-06-23 18:06:56
...
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:434)
at java.util.Properties.load0(Properties.java:353)
at java.util.Properties.load(Properties.java:341)
at com.qf.util.DBUtilDruid.<clinit>(DBUtilDruid.java:23)
at com.qf.service.impl.AccountServiceImpl.transfer(AccountServiceImpl.java:18)
at com.qf.test.Tests.main(Tests.java:10)
Exception in thread "main" java.lang.NullPointerException
at com.qf.util.DBUtilDruid.getConnection(DBUtilDruid.java:33)
at com.qf.service.impl.AccountServiceImpl.transfer(AccountServiceImpl.java:18)
at com.qf.test.Tests.main(Tests.java:10)