[jitsi-dev] error: creator NULL in Reservation System


#1

Hi!

I'm trying to connect the Reservation System to my API.
It doesn't send the mail_owner in the post from JICOFO to my API.

JICOFO shows this error:

java.lang.NullPointerException
        at
org.jitsi.impl.reservation.rest.RESTReservations.createConference(RESTReservations.java:208)

I saw this commit from paweldomas <https://github.com/paweldomas> to allow
reservation system without authentication:
https://github.com/jitsi/jicofo/commit/9f8729dbc9e275e8c2d54b64e7fd9098d843f806

but I don't understand why creator can't be NULL. It's not allowed in this
line:

if (creator.equals(conference.getOwner()))

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/impl/reservation/rest/RESTReservations.java

thanks,

Sadiel.


#2

Hi Sadiel,

I experienced that as well. I just prefixed the clause with 'creator ==
null ||', however I haven't gone back to check whether that allows
something it shouldn't when authentication -is- required.

···

On Wed, Jan 13, 2016 at 4:13 PM, Sadiel Orama <sorama@ubity.com> wrote:

Hi!

I'm trying to connect the Reservation System to my API.
It doesn't send the mail_owner in the post from JICOFO to my API.

JICOFO shows this error:

java.lang.NullPointerException
        at
org.jitsi.impl.reservation.rest.RESTReservations.createConference(RESTReservations.java:208)

I saw this commit from paweldomas <https://github.com/paweldomas> to
allow reservation system without authentication:

https://github.com/jitsi/jicofo/commit/9f8729dbc9e275e8c2d54b64e7fd9098d843f806

but I don't understand why creator can't be NULL. It's not allowed in this
line:

if (creator.equals(conference.getOwner()))

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/impl/reservation/rest/RESTReservations.java

thanks,

Sadiel.

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Thank you very much, I like your solution.

···

2016-01-18 10:22 GMT-05:00 Simon Ditner <spditner@gmail.com>:

Hi Sadiel,

I experienced that as well. I just prefixed the clause with 'creator ==
null ||', however I haven't gone back to check whether that allows
something it shouldn't when authentication -is- required.

On Wed, Jan 13, 2016 at 4:13 PM, Sadiel Orama <sorama@ubity.com> wrote:

Hi!

I'm trying to connect the Reservation System to my API.
It doesn't send the mail_owner in the post from JICOFO to my API.

JICOFO shows this error:

java.lang.NullPointerException
        at
org.jitsi.impl.reservation.rest.RESTReservations.createConference(RESTReservations.java:208)

I saw this commit from paweldomas <https://github.com/paweldomas> to
allow reservation system without authentication:

https://github.com/jitsi/jicofo/commit/9f8729dbc9e275e8c2d54b64e7fd9098d843f806

but I don't understand why creator can't be NULL. It's not allowed in
this line:

if (creator.equals(conference.getOwner()))

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/impl/reservation/rest/RESTReservations.java

thanks,

Sadiel.

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev