diff options
author | Jo Shields <directhex@apebox.org> | 2013-10-09 22:09:27 +0400 |
---|---|---|
committer | Jo Shields <directhex@apebox.org> | 2013-10-09 22:09:27 +0400 |
commit | 4686e74a1755bdec7946285154145d6c15c2b3e7 (patch) | |
tree | a8e0a15a9033964e1c30c097a4bcc69365ba81f1 | |
parent | abfc5abc78ecfc6fb3ed1088e7dbe2ca4f223fef (diff) |
Restore behaviour when not passing a --docrootdir parameter from Mono 2.8 when running on Mono 3.0+
Since Mono 3.0, running monodoc without specifying --docrootdir has caused an ArgumentNullException. This works around it.
-rw-r--r-- | docbrowser/browser.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docbrowser/browser.cs b/docbrowser/browser.cs index 6f706207..b9eb66f8 100644 --- a/docbrowser/browser.cs +++ b/docbrowser/browser.cs @@ -119,6 +119,9 @@ class Driver { List<string> topics = p.Parse (args); + if (basedir == null) + basedir = Directory.GetParent (System.Reflection.Assembly.GetExecutingAssembly ().Location).FullName; + if (show_version) { Console.WriteLine ("Mono Documentation Browser"); Version ver = Assembly.GetExecutingAssembly ().GetName ().Version; |