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

RadialGradientPaintContext: hints can be null

    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, RadialGradientPaintContext access it without checking
      if it is null.

      Java Web Start 1.5.0
      Using JRE version 1.5.0_13 Java HotSpot(TM) Client VM
      User home directory = /Users/devtest
      ----------------------------------------------------
      c: clear console window
      f: finalize objects on finalization queue
      g: garbage collect
      h: display this help message
      m: print memory usage
      o: trigger logging
      p: reload proxy configuration
      q: hide console
      r: reload policy configuration
      s: dump system and deployment properties
      t: dump thread list
      0-5: set trace level to <n>
      ----------------------------------------------------
      DM Application Logging Started at Wed Jan 09 17:49:14 MST 2008
      ---------------------------------------------
      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://171.69.39.36/admin/
      Server DM Version = 6.1(0)29
      Server DM Launcher Version = 1.5.23, size = 319488 bytes
      invoking SGZ Loader..
      Cache location = /Users/devtest/.asdm/cache
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at
      org.apache.batik.ext.awt.RadialGradientPaintContext.<init>(RadialGradientPaintContext.java:177)
      at
      org.apache.batik.ext.awt.RadialGradientPaint.createContext(RadialGradientPaint.java: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:2574)
      at
      com.cisco.dmchart.gui.chart.FancyXYLineAndShapeRenderer.drawSecondaryPass(FancyXYLineAndShapeRenderer.java:244)
      at
      com.cisco.dmchart.gui.chart.FancyXYLineAndShapeRenderer.drawItem(FancyXYLineAndShapeRenderer.java:156)
      at com.cisco.dmchart.gui.chart.FancyXYPlot.render(FancyXYPlot.java:101)
      at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2680)
      at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1214)
      at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1270)
      at javax.swing.JComponent.paint(JComponent.java:1006)
      at javax.swing.JComponent._paintImmediately(JComponent.java:4890)
      at javax.swing.JComponent.paintImmediately(JComponent.java:4676)
      at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)
      at
      javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
      at
      java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
      at
      java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

        Attachments

        1. bug44194-patch.txt
          0.4 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: