GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IsIterableContainingInOrder.contains(null, null) causes NullPointerException · Issue #69 · hamcrest/JavaHamcrest

IsIterableContainingInOrder.contains(null, null) causes NullPointerException #69

New issue
Copy link
New issue
Copy link
Closed
Closed
IsIterableContainingInOrder.contains(null, null) causes NullPointerException#69
Copy link

Description

@izat
izat
opened on Oct 31, 2014
Issue body actions

It just looks like the same exception as issue 25.

code:

    @Test
    public void testHamcrest() throws Exception {
        List<Integer> list = Arrays.asList(null, null);
        assertThat(list, IsIterableContainingInOrder.contains(null, null));
    }

output:

java.lang.NullPointerException
    at org.hamcrest.collection.IsIterableContainingInOrder$MatchSeries.isMatched(IsIterableContainingInOrder.java:65)
    at org.hamcrest.collection.IsIterableContainingInOrder$MatchSeries.matches(IsIterableContainingInOrder.java:52)
    at org.hamcrest.collection.IsIterableContainingInOrder.matchesSafely(IsIterableContainingInOrder.java:25)
    at org.hamcrest.collection.IsIterableContainingInOrder.matchesSafely(IsIterableContainingInOrder.java:14)
    at org.hamcrest.TypeSafeDiagnosingMatcher.matches(TypeSafeDiagnosingMatcher.java:55)
    at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:12)
    at org.junit.Assert.assertThat(Assert.java:865)
    at org.junit.Assert.assertThat(Assert.java:832)

Activity

  1. npathai
    added a commit that references this issue on Nov 2, 2014

    Resolved Issue hamcrest#69 by adding null safe check similar to the o…

    d149d9f
  2. npryce
    added a commit that references this issue on Nov 23, 2014

    Merge pull request #70 from NarendraPathai/Issue69

    675f810
  3. npryce
    closed this as completedon Nov 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.