Skip to content

Commit fc9e795

Browse files
committed
Bugfix for RpsAddins without startup scripts
1 parent af1da41 commit fc9e795

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed
Binary file not shown.

RevitPythonShell.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.40629.0
4+
VisualStudioVersion = 12.0.21005.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RevitPythonShell", "RevitPythonShell\RevitPythonShell.csproj", "{7E37F14E-D840-42F8-8CA6-90FFC5497972}"
77
EndProject

RpsRuntime/RpsExternalApplicationBase.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ private void ExecuteStartupScript(UIControlledApplication uiControlledApplicatio
198198
/// </summary>
199199
private string GetEmbeddedScript(string scriptName, Assembly addinAssembly)
200200
{
201+
if (scriptName == null)
202+
{
203+
return null;
204+
}
201205
var source = new StreamReader(addinAssembly.GetManifestResourceStream(scriptName)).ReadToEnd();
202206
return source;
203207
}

0 commit comments

Comments
 (0)