[
https://issues.apache.org/jira/browse/CASSANDRA-13891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16345403#comment-16345403
]
Jeff Jirsa commented on CASSANDRA-13891:
----------------------------------------
{quote}
I have created a CircleCI account via Github authentication, but it looks like
it tries to build a only master and even so it spews an error message. Could
you point me at links where I can find how to solve those issues?
{quote}
Once you create a new account, you put the circle yml into the new branch, and
on push, circle should see you push to the new branch and build it.
If you make the account before you push, it probably won't try to build the new
branch. Just re-push to trigger the build.
> fromJson(null) throws java.lang.NullPointerException on Cassandra
> -----------------------------------------------------------------
>
> Key: CASSANDRA-13891
> URL: https://issues.apache.org/jira/browse/CASSANDRA-13891
> Project: Cassandra
> Issue Type: Bug
> Components: CQL
> Environment: Cassandra 3.11
> Reporter: Marcel Villet
> Assignee: Edward Ribeiro
> Priority: Minor
> Attachments: CASSANDRA-13891.patch
>
>
> Basically, {{fromJson}} throws a {{java.lang.NullPointerException}} when NULL
> is passed, instead of just returning a NULL itself. Say I create a UDT and a
> table as follows:
> {code:java}
> create type type1
> (
> id int,
> name text
> );
> create table table1
> (
> id int,
> t FROZEN<type1>,
> primary key (id)
> );{code}
> And then try and insert a row as such:
> {{insert into table1 (id, t) VALUES (1, fromJson(null));}}
> I get the error: {{java.lang.NullPointerException}}
> This works as expected: {{insert into table1 (id, t) VALUES (1, null);}}
> Programmatically, one does not always know when a UDT will be null, hence me
> expecting {{fromJson}} to just return NULL.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]