Quick Generator null pointer exception
Closed this issue · 1 comments
larssn commented
BR Version: build231005-061000 (stable) and the latest beta build231109-191104 DCS Version: 2.9.0.47168
Brief Description:
A null pointer exception is thrown whenever you try to download a generated mission from the Quick Generator.
Happens in both stable and latest beta.
Here's the template that I just threw together that demonstrates the problem.
Note that the exception seem to reference files in d:\a\ which is not the location of my install.
Exception details
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at BriefingRoom4DCS.INIFile.ConvertStringFrom[T](T value) in D:\a\briefing-room-for-dcs\briefing-room-for-dcs\Source\BriefingRoom\Library\INIFile.cs:line 462
at BriefingRoom4DCS.INIFile.SetValue[T](String section, String key, T value) in D:\a\briefing-room-for-dcs\briefing-room-for-dcs\Source\BriefingRoom\Library\INIFile.cs:line 206
at BriefingRoom4DCS.Template.MissionTemplate.GetAsIni() in D:\a\briefing-room-for-dcs\briefing-room-for-dcs\Source\BriefingRoom\Template\MissionTemplate.cs:line 149
at BriefingRoom4DCS.Template.MissionTemplate.GetIniBytes() in D:\a\briefing-room-for-dcs\briefing-room-for-dcs\Source\BriefingRoom\Template\MissionTemplate.cs:line 140
at BriefingRoom4DCS.MizMaker.ExportToMizBytes(DCSMission mission, MissionTemplate template) in D:\a\briefing-room-for-dcs\briefing-room-for-dcs\Source\BriefingRoom\Library\MizMaker.cs:line 49
at BriefingRoom4DCS.Mission.DCSMission.SaveToMizBytes(MissionTemplate template) in D:\a\briefing-room-for-dcs\briefing-room-for-dcs\Source\BriefingRoom\Mission\DCSMission.cs:line 209
at BriefingRoom4DCS.GUI.Common.Pages.QuickBuilder.DownloadMission() in D:\a\briefing-room-for-dcs\briefing-room-for-dcs\Source\BriefingRoomCommonGUI\Pages\QuickBuilder.razor:line 439
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
at Microsoft.AspNetCore.Components.WebView.IpcSender.<>c__DisplayClass11_0.<NotifyUnhandledException>b__1()
at Microsoft.AspNetCore.Components.WebView.WindowsForms.WindowsFormsDispatcher.InvokeAsync(Action workItem)
at Microsoft.AspNetCore.Components.WebView.WindowsForms.WindowsFormsDispatcher.<>c.<.cctor>b__8_0(Exception exception)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
BriefingRoomDesktop
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Windows.Forms
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Windows.Forms.Primitives
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.ComponentModel.Primitives
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Drawing.Primitives
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Collections.Specialized
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Drawing.Common
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Threading
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Diagnostics.TraceSource
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Collections
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.DependencyInjection.Abstractions
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.AspNetCore.Components.WebView.WindowsForms
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.AspNetCore.Components.WebView
Assembly Version: 7.0.11.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Blazored.LocalStorage
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.DependencyInjection
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.ComponentModel
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.ObjectModel
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.AspNetCore.Components.Web
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.AspNetCore.Components
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Win32.Primitives
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.ComponentModel.EventBasedAsync
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Threading.Thread
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.ComponentModel.TypeConverter
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Memory
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Numerics.Vectors
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.Logging
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.JSInterop
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.Options
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.Logging.Abstractions
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Web.WebView2.WinForms
Assembly Version: 1.0.1370.28
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Web.WebView2.Core
Assembly Version: 1.0.1370.28
Win32 Version: n/a
CodeBase:
----------------------------------------
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.FileProviders.Abstractions
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Private.Uri
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Collections.Concurrent
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Diagnostics.Tracing
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Drawing
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Win32.SystemEvents
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.FileProviders.Physical
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.Primitives
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.FileProviders.Composite
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Threading.ThreadPool
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Threading.Tasks
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime.Extensions
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime.Loader
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Collections.NonGeneric
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Linq
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Extensions.FileProviders.Embedded
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Xml.XDocument
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Private.Xml.Linq
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Private.Xml
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Text.Encoding.Extensions
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Xml.ReaderWriter
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Text.Json
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Text.Encodings.Web
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Reflection.Emit.Lightweight
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Reflection.Primitives
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Reflection.Emit.ILGeneration
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime.Intrinsics
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
BriefingRoomCommonGUI
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
BriefingRoom
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Console
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime.Serialization.Formatters
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Linq.Expressions
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime.Numerics
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime.Serialization.Primitives
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Data.Common
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
LuaTableSerializer
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.AspNetCore.Components.Forms
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Blazored.Typeahead
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.IO.Compression
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.ComponentModel.Annotations
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Polly
Assembly Version: 8.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
YamlDotNet
Assembly Version: 13.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Text.RegularExpressions
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.CSharp
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
FluentRandomPicker
Assembly Version: 3.4.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
netstandard
Assembly Version: 2.1.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
IronPdf
Assembly Version: 2023.6.0.10
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime.InteropServices.RuntimeInformation
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Security.Cryptography
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Security.Cryptography.Primitives
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Security.Cryptography.Algorithms
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Google.Protobuf
Assembly Version: 3.22.3.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Grpc.Core.Api
Assembly Version: 2.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
IronSoftware.Drawing.Common
Assembly Version: 2023.3.3.0
Win32 Version: n/a
CodeBase:
----------------------------------------
SixLabors.ImageSharp
Assembly Version: 2.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Threading.Timer
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime.CompilerServices.Unsafe
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Buffers
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Diagnostics.StackTrace
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Reflection.Metadata
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Collections.Immutable
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.IO.MemoryMappedFiles
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
************** JIT Debugging **************
Mission and Template Zip:
Mission modified: N
john681611 commented
Thanks for the report fixed.