[mapguide-trac] #1749: Adding image to Symbol Definition gets error

MapGuide Open Source trac_mapguide at osgeo.org
Wed Jul 13 13:46:28 EDT 2011


#1749: Adding  image to Symbol Definition gets error
-----------------------+----------------------------------------------------
   Reporter:  andrewd  |       Owner:  jng  
       Type:  defect   |      Status:  new  
   Priority:  low      |   Milestone:       
  Component:  Maestro  |     Version:  2.1.0
   Severity:  minor    |    Keywords:       
External_id:           |  
-----------------------+----------------------------------------------------
 Create a new symbol definition. In the editor, under "Graphics", add an
 image and you will get the following:

 Object reference not set to an instance of an object.

 System.NullReferenceException: Object reference not set to an instance of
 an object.
    at
 Maestro.Editors.SymbolDefinition.GraphicsEditors.ImageDialog..ctor(EditorBindableCollapsiblePanel
 parent, ISimpleSymbolDefinition ssd, IImageGraphic image) in
 d:\Workspace\maestro-3.0\Maestro.Editors\SymbolDefinition\GraphicsEditors\ImageDialog.cs:line
 55
    at
 Maestro.Editors.SymbolDefinition.SymbolGraphicsCtrl.imageToolStripMenuItem_Click(Object
 sender, EventArgs e) in
 d:\Workspace\maestro-3.0\Maestro.Editors\SymbolDefinition\SymbolGraphicsCtrl.cs:line
 103
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs
 e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e,
 ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
 ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
 button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&
 m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
 IntPtr wparam, IntPtr lparam)

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1749>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list