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

NullPointerException in MergeView.toString

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 3.1
    • 3.0.4
    • None
    • Hide

      View v = new MergeView();
      v.toString(); // => NullPointerException

      Show
      View v = new MergeView(); v.toString(); // => NullPointerException

    Description

      Found while porting from 2.6.15 to 3.0.4.

      Exception in thread "main" java.lang.NullPointerException
      at org.jgroups.util.Util.printListWithDelimiter(Util.java:2040)
      at org.jgroups.View.toString(View.java:143)
      at org.jgroups.MergeView.toString(MergeView.java:83)

      It happened to me of course only when a MergeView is instanciated without any argument like I did for testing purposes.
      I'd say View should check if members is not null before trying anything.

      Regards.

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rddx_jira Renaud Devarieux (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: