Giter Club home page Giter Club logo

Comments (8)

sacOO7 avatar sacOO7 commented on June 4, 2024 1

Thank you @grchis , I will surely take a look at it and will fix it as soon as possible, bug will get fixed in next update. Let me know if there are any other errors in the code.

from rocket.chat.java.sdk.

sacOO7 avatar sacOO7 commented on June 4, 2024 1

Ohk will fix it 👍 , I will upload new version tomorrow (Beta one), let me know if I forget to do it :p

from rocket.chat.java.sdk.

sacOO7 avatar sacOO7 commented on June 4, 2024

Hey, is this really creating problem in the code. Actually my test executed without any problem. I think it's taking room as null automatically without throwing exception. Might be due to variation in Json Libraries.
Because the data returned has value null, so it should return null. Which SDK version you are using right now? Can you log the LiveChatConfiguration Object return by server in here. The SS is quite not helping me.

from rocket.chat.java.sdk.

sacOO7 avatar sacOO7 commented on June 4, 2024

I think error is due to different data type of a room returned by a server. Can you please log here the data.

from rocket.chat.java.sdk.

grchis avatar grchis commented on June 4, 2024

This is the value that gets passed in the LiveChatConfigObject:

{"color":"#C1272D","offlineMessage":"We are not online right now. Please leave us a message:","language":"","title":"Everything HelpDesk","triggers":[],"displayOfflineForm":false,"enabled":true,"room":null,"offlineColor":"#C1272D","offlineTitle":"Leave a message","transcriptMessage":"Would you like a copy of this chat emailed?","offlineSuccessMessage":"","videoCall":false,"offlineUnavailableMessage":"","transcript":false,"online":true,"departments":[{"showOnRegistration":true,"name":"Click here to chat with a technician","description":"You can chat in real time with a technician","numAgents":2,"_id":"BgGqRRSgvMXrbXNFC","_updatedAt":{"$date":1502632040867},"enabled":true},{"showOnRegistration":true,"name":"Technicians","description":"This is the technicians department","numAgents":2,"_id":"KijZPJaknF9NpR9BB","_updatedAt":{"$date":1502631876519},"enabled":true},{"showOnRegistration":true,"name":"Test Department","description":"","numAgents":2,"_id":"jHqtgH9uggfhz9udz","_updatedAt":{"$date":1502632552669},"enabled":true}],"allowSwitchingDepartments":true,"registrationForm":false}

from rocket.chat.java.sdk.

grchis avatar grchis commented on June 4, 2024

The issue is that the "room" attribute is null, and when this line room=object.getString("room"); i executed the exception is throwned

from rocket.chat.java.sdk.

sacOO7 avatar sacOO7 commented on June 4, 2024

Hey there,
I have fixed the bug, fix currently available in beta version
Add this to build.gradle

compile 'io.rocketchat:rocketchatjavasdk:0.6.3'

Let me know if there is anything else I can do for you 👍

from rocket.chat.java.sdk.

grchis avatar grchis commented on June 4, 2024

It works now. Thanks!

from rocket.chat.java.sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.