FileTransferManager -> WARNING: null

Issue #46 closed
Former user created an issue

don'n work:

xmppSession.getManager(FileTransferManager.class).addFileTransferOfferListener(event -> {
            try {
                final FileTransfer fileTransfer = event.accept(Paths.get(event.getName()));
            } catch (IOException e) {
                e.printStackTrace();
            }
        });

rocks.xmpp.extensions.filetransfer.FileTransferManager$2 run WARNING: null java.lang.NullPointerException at java.util.Objects.requireNonNull(Objects.java:203)

Comments (8)

  1. Former user Account Deleted

    Problem in rocks.xmpp.extensions/si/model/StreamInitiation.java: Objects.requireNonNull(profileElement);

    public StreamInitiation(String id, String profile, String mimeType, Object profileElement, FeatureNegotiation featureNegotiation) {
            this.id = id;
            this.profile = profile;
            this.mimeType = mimeType;
            this.profileElement = Objects.requireNonNull(profileElement);
            this.featureNegotiation = featureNegotiation;
        }
    
  2. Former user Account Deleted

    I saw that you've fixed it in the source code :) when will version 0.6 in maven central? or 0.5.2 with bugfix?

  3. Christian Schudt repo owner

    Hi,

    sorry, for the bug... I can't really tell you when a new release will happen. "It's done, when it's done" ;-) I've just released 0.5.1 (3 days ago), so I'd wait for a potential 0.5.2 (if at all, when I get many more complains/bug reports.

    0.6.0 probably takes some time as well (maybe 1-2 months).

    I've added a new integration test to be more safe about bugs like this: c9941cd419fd88da8279d30774aae58d72c93fe0

  4. Log in to comment