TogetherOS / cicada

🚀 Fast lightweight HTTP service framework.
https://crossoverjie.top/categories/cicada/
Apache License 2.0
953 stars 212 forks source link

Got a null NullPointerException when APP starting! #28

Closed leonGravel closed 5 years ago

leonGravel commented 5 years ago

Describe the bug if i set my project structure like this:

   ├── src/main/java
   ├── ├──MainStart.java               //app start

i didn't set the package path, then,got this error:

ThreadLocalHolder.setLocalTime(System.currentTimeMillis());
 AppConfig.getInstance().setRootPackageName(clazz.getPackage().getName());

throw java.lang.NullPointerException.

Expected behavior I think there should be a default value here instead of throwing an exception.

crossoverJie commented 5 years ago

@leonGravel

Got it, I will update in the next version.

crossoverJie commented 5 years ago

@leonGravel

31

fixed