Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3215

Potential NullPointerException in CachedPage class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.2.1, 10.4.1.3
    • Store
    • None
    • Windows XP

    Description

      There's a potential for a NullPointerException to be thrown in the in the org.apache.derby.impl.store.raw.data.CachedPage class. In the writePage() method, there's a test of the myContainer reference to ensure it's not null (line 771), however in the else block, myContainer is dereferenced (line 836), where a NullPointerException is guaranteed to be thrown.

      Attachments

        1. DERBY-3215.diff
          0.9 kB
          Dag H. Wanvik
        2. DERBY-3215b.diff
          4 kB
          Dag H. Wanvik

        Activity

          People

            dagw Dag H. Wanvik
            jrv680 Jason Valentine
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: