Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-804

LinearGradientPaintContext throws null pointer exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Utilities
    • Labels:
      None
    • Environment:
      Operating System: Mac OS X 10.4
      Platform: Macintosh

      Description

      On Mac OS 10.4.10 and 10.4.11, I see the following exception. The JVM passes the
      parameter "hints" as null, LinearGradientPaintContext access it without checking
      if it is null. (This is similar to BATIK-803 which occurs to
      RadialGradientPaintContext)

      Java Web Start 1.5.0
      Using JRE version 1.5.0_07 Java HotSpot(TM) Client VM User home directory =
      /Users/cpoetzel
      ---------------------------------------------
      Local DM Launcher Version = 1.5.23
      Local DM Launcher Version Display = 1.5(23) OK button clicked Trying for ASDM
      Version file; url = https://10.10.250.201/admin/ Server DM Version = 6.1(0)22
      Server DM Launcher Version = 1.5.23, size = 319488 bytes invoking SGZ Loader..
      Cache location = /Users/cpoetzel/.asdm/cache Exception in thread
      "AWT-EventQueue-0" java.lang.NullPointerException at
      org.apache.batik.ext.awt.LinearGradientPaintContext .<init>(DashoA10*..:177)
      at ce9.createContext(DashoA10*..:464)
      at apple.awt.OSXSurfaceData.setupPaint(OSXSurfaceData.java:760)
      at apple.awt.OSXSurfaceData.setupGraphicsState(OSXSurfaceData.java:1085)
      at apple.awt.OSXSurfaceData.setupGraphicsState(OSXSurfaceData.java:1013)
      at apple.awt.OSXSurfaceData.drawfillShape(OSXSurfaceData.java:1346)
      at apple.awt.CRenderer.drawfillShape(CRenderer.java:536)
      at apple.awt.CRenderer.fill(CRenderer.java:574)
      at apple.awt.CRenderer.fill(CRenderer.java:561)
      at sun.java2d.pipe.ValidatePipe.fill(ValidatePipe.java:142)
      at sun.java2d.SunGraphics2D.fill(SunGraphics2D.java:2571)
      at vo.a(DashoA10*..:244)
      at vo.a(DashoA10*..:156)
      at wa.a(DashoA10*..:101)
      at wb.a(DashoA10*..:2680)
      at wj.a(DashoA10*..:1214)
      at wy.paintComponent(DashoA10*..:1270)
      at javax.swing.JComponent.paint(Jcom

        Attachments

        1. bug44232-patch.txt
          0.1 kB
          Dahai Li

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              dli@cisco.com Dahai Li
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: