Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

P3D Addon Organiser Unhandled exception

Featured Replies

Hello there,

I have tried to move my AI aircraft out of the main P3Dv4 folder but when I try to add a component to the Other addons tab I get this

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at P3DV4AddonOrganizer.MainDialog.PopulateAddonView()
   at P3DV4AddonOrganizer.MainDialog.AddComponent_FormClosed(Object sender, FormClosedEventArgs e)
   at System.Windows.Forms.Form.OnFormClosed(FormClosedEventArgs e)
   at System.Windows.Forms.Form.WmClose(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

hoping that someone will know the cause of this I am running win 10 64 bit and have .NET 4.7 active

  • Commercial Member

Hi,

I have shortened your post to the exception stack trace (the rest is irrelevant)

What did you do exactly when you tried to add the AI models? Every little step matters to catch a bug. I just tried it on my end and had no issues.

Which version of the P4AO are you using? Latest release is 1.27 b02

Btw. P4AO has been built with .Net 4.6.2. .Net is not cumulative, every version is a separate environment. When you only have 4.7 that does not mean that everything before that will work.

Best regards

LORBY-SI

  • Author

Sorry my bad was trying to create the xml file inside the folder that contains all my ai aircraft moved the folder to a different location and now all is good. Have to wait now until tomorrow to see  if  p3d actually sees the ai traffic

Regards

John Grimshaw

  • Commercial Member

Hello John,

still, a null pointer exception shouldn't happen. Can you help me to recreate it, so I can resolve the underlying issue? 

Generally speaking, you can have both assets (xml and content) in the same place, using relative paths. Was that what you were trying to do?

To be sure, I just did the same thing. Installed an aircraft into "C:\Users\...\Documents\Prepar3D v4 Add-ons\Legacy Aircraft\SimObjects\Airplanes\..." and added it as an "other addon" with P4AO -  no error. The resulting XML looks like this (note the relative path):

Quote

<?xml version="1.0" encoding="utf-8"?>
<SimBase.Document Type="AddOnXml" version="4,0" id="add-on">
  <AddOn.Name>Legacy Aircraft</AddOn.Name>
  <AddOn.Description />
  <AddOn.Component>
    <Category>SimObjects</Category>
    <Path>SimObjects\Airplanes</Path>
  </AddOn.Component>
</SimBase.Document>

Best regards

LORBY-SI

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.