[ 
https://issues.apache.org/jira/browse/METAMODEL-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298575#comment-14298575
 ] 

ASF GitHub Bot commented on METAMODEL-109:
------------------------------------------

GitHub user tomaszguzialek opened a pull request:

    https://github.com/apache/metamodel/pull/6

    METAMODEL-109: CassandraDataContext throws IllegalArgumentException with

    proper message instead of NPE when keystore does not exist.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tomaszguzialek/metamodel METAMODEL-109

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/metamodel/pull/6.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #6
    
----
commit 3a7483c89b2e4ab15ca6a2af514fe7679718603c
Author: tomaszguzialek <[email protected]>
Date:   2015-01-30T12:33:26Z

    METAMODEL-109: CassandraDataContext throws IllegalArgumentException with
    proper message instead of NPE when keystore does not exist.

----


> CassandraDataContext throws NPE when keyspace does not exist
> ------------------------------------------------------------
>
>                 Key: METAMODEL-109
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-109
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: Tomasz Guzialek
>            Assignee: Tomasz Guzialek
>
> A NullPointerException is thrown if a non-existent keyspace is specified in 
> CassandraDataContext:
> java.lang.NullPointerException
>       at 
> org.apache.metamodel.cassandra.CassandraDataContext.detectSchema(CassandraDataContext.java:108)
>       at 
> org.apache.metamodel.cassandra.CassandraDataContext.<init>(CassandraDataContext.java:89)
> An exception with more informative message should be thrown.



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

Reply via email to