Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2792

NPE in DefaultMessageFactory if receiving unknown message type > 32

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 5.4, 5.3.7, 5.2.26
    • None
    • None
    • False
    • None
    • False

      Encountered this when redeploying members which used a message type not registered on previous members:

      java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "this.map" is null
      at org.jgroups.DefaultMessageFactory.create(DefaultMessageFactory.java:31)

      Here's a PR:

      https://github.com/belaban/JGroups/pull/789

      This will instead make it throw the expected IAE "no creator found for type".

              rhn-engineering-bban Bela Ban
              cfredri4 Christian Fredriksson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: