Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
625 stars 183 forks source link

Custom serializer doesn't work with MobileOptionsBuilder #358

Closed hamarna closed 10 months ago

hamarna commented 1 year ago

3.5.1

java.lang.NullPointerException: Cannot invoke "it.auties.whatsapp.controller.ControllerSerializer.linkMetadata(it.auties.whatsapp.controller.Controller)" because "this.serializer" is null
    at it.auties.whatsapp.controller.Controller.phoneNumber(Controller.java:105)
    at it.auties.whatsapp.api.MobileRegistrationBuilder$Unregistered.register(MobileRegistrationBuilder.java:125)

It works properly with web version. Also mobile version works if serializer is not set.

Auties00 commented 10 months ago

Fixed on the master branch