xenko icon indicating copy to clipboard operation
xenko copied to clipboard

NullReferenceException when trying to save

Open agiro8747 opened this issue 7 years ago • 3 comments

Greetings, I'm trying out your engine but when trying to save my scene I get a NullReferenceException.

Here's the message:

Error: There was a problem saving the solution. System.NullReferenceException: object reference is not set to an instance of the object. on the following place: SiliconStudio.Assets.AssetItemExtensions.GetProjectInclude(AssetItem assetItem) place: C:\TeamCity\work\80a49494ba341a6a\sources\assets\SiliconStudio.Assets\AssetItemExtensions.cs, line: 19 on the following place: SiliconStudio.Assets.Package.Save(ILogger log, PackageSaveParameters saveParameters) place: C:\TeamCity\work\80a49494ba341a6a\sources\assets\SiliconStudio.Assets\Package.cs, line: 574 on the following place: SiliconStudio.Assets.PackageSession.Save(LoggerResult log, PackageSaveParameters saveParameters) place: C:\TeamCity\work\80a49494ba341a6a\sources\assets\SiliconStudio.Assets\PackageSession.cs, line: 661 on the following place: SiliconStudio.Assets.Editor.ViewModel.SessionViewModel.<>c__DisplayClass192_0.<SaveSession>b__0() place: C:\TeamCity\work\80a49494ba341a6a\sources\editor\SiliconStudio.Assets.Editor\ViewModel\SessionViewModel.cs, line: 890

I tried my best to give a decent translation to English as my system is in Hungarian, but you probably wouldn't understand that gibberish. Your engine looks quite promising. Please correct the issue if you have the time.

edit: btw your website contact form crashed as well when trying to reach you that way :D pls correct that as well.

agiro8747 avatar Mar 16 '18 14:03 agiro8747

and, I'm using Xenko 2.1.2.1 btw.

agiro8747 avatar Mar 16 '18 16:03 agiro8747

This usually means that at least one object in your scene is messed up. Load the project again and see if there are any errors or warnings (red and yellow text).

stefnotch avatar Mar 17 '18 08:03 stefnotch

Yup, that indeed solved it. Thanks for the assist!

agiro8747 avatar Mar 17 '18 09:03 agiro8747