Description
In Kylin web, if not select a "project", the page will display "Please select your project first", but I still be able to click "Add streaming table"; when save the table info, a NPE was thrown:
java.lang.NullPointerException at java.util.concurrent.ConcurrentSkipListMap.comparable(ConcurrentSkipListMap.java:659) at java.util.concurrent.ConcurrentSkipListMap.doGet(ConcurrentSkipListMap.java:821) at java.util.concurrent.ConcurrentSkipListMap.get(ConcurrentSkipListMap.java:1626) at org.apache.kylin.common.restclient.SingleValueCache.get(SingleValueCache.java:85) at org.apache.kylin.metadata.project.ProjectManager.getProject(ProjectManager.java:138) at org.apache.kylin.metadata.project.ProjectManager.addTableDescToProject(ProjectManager.java:280) at org.apache.kylin.rest.service.CubeService.syncTableToProject(CubeService.java:580) at org.apache.kylin.rest.service.CubeService$$FastClassByCGLIB$$17a07c0e.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
Suggestion: don't allow user to take create actions if no project is selected.