Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
Browse files Browse the repository at this point in the history
	* DesignTime/CodeProviderDesignerLoader.cs: Guard against a NRE in 
	ReportErrors if the error collection is null. 


svn path=/trunk/mwf-designer/; revision=98268
  • Loading branch information
ivanz committed Mar 14, 2008
1 parent e76f609 commit fe07bfa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2008-03-11 Ivan N. Zlatev <contact@i-nz.net>

* DesignTime/CodeProviderDesignerLoader.cs: Guard against a NRE in
ReportErrors if the error collection is null.

2008-03-02 Ivan N. Zlatev <contact@i-nz.net>

* Enable Undo, Redo, Cut, Copy, Paste, Delete as I've already implmented
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -36,7 +36,7 @@ mono-design-run:
cd ${MD_BUILD_DIR};mono --debug mwf-designer.exe

mono-design-msnet:
csc -debug -d:NET_2_0 -t:library -r:System.Design.dll,System.Windows.Forms.dll,System.Drawing.dll,System.Data.dll,..\build\Mono.Design.dll,..\build\ICSharpCode.NRefactory.dll -out:..\build\mwf-designer.exe src\*.cs src\*\*.cs
csc -debug -d:NET_2_0 -t:library -r:System.Design.dll,System.Windows.Forms.dll,System.Drawing.dll,System.Data.dll,..\build\Mono.Design.dll,..\build\ICSharpCode.NRefactory.dll -out:..\build\mwf-designer.exe src\*.cs src\*\*.cs src\*\*\*.cs



3 changes: 3 additions & 0 deletions src/DesignTime/CodeProviderDesignerLoader.cs
Expand Up @@ -86,6 +86,9 @@ protected override void ReportFlushErrors (ICollection errors)

private void ReportErrors (ICollection errors)
{
if (errors == null)
return;

IUIService service = base.GetService (typeof (IUIService)) as IUIService;
if (service != null) {
foreach (object error in errors) {
Expand Down
2 changes: 1 addition & 1 deletion src/DesignTime/UndoRedoEngine.cs
Expand Up @@ -121,7 +121,7 @@ protected override void Dispose (bool disposing)
_undoUnits.Clear ();
_redoUnits.Clear ();
}
base.Dispose ();
base.Dispose (disposing);
}
}
}

0 comments on commit fe07bfa

Please sign in to comment.