Shaofeng SHI created KYLIN-1666:
-----------------------------------

             Summary: Should check project selection before add a stream table
                 Key: KYLIN-1666
                 URL: https://issues.apache.org/jira/browse/KYLIN-1666
             Project: Kylin
          Issue Type: Bug
          Components: Web 
    Affects Versions: v1.5.1, v1.5.0
            Reporter: Shaofeng SHI
            Assignee: Zhong,Jason


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:

{code}
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)
{code}

Suggestion: don't allow user to take create actions if no project is selected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to