This is a migrated thread and some comments may be shown as answers.

xaml/baml NullReferenceException

3 Answers 13 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 18 Jun 2014, 09:55 PM
Was looking at a .baml and got this error:

Product version: 2014.1.225.0
Object reference not set to an instance of an object.
at ..( ,  ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\XamlXtract\Telerik.Xaml\TextWriters\XamlTextWriter.cs:line 80
at ..Read( ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\XamlXtract\Telerik.Xaml\TextWriters\XamlTextWriter.cs:line 26
at ..Write( , Stream –, String ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\XamlXtract\Telerik.Xaml\XamlDom\XmlLanguageWriter.cs:line 35
at .’.Write(˜ ‹Ž) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\UI\JustDecompile.CodeViewer\Writers\XmlWriter.cs:line 46
at .Œ.( , TabCodeSettings ‹Ž, CancellationToken ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\UI\JustDecompile.CodeViewer\ViewModels\CodeViewerViewModel.cs:line 548

3 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 20 Jun 2014, 11:22 AM
Hi David,

Thanks for the report! Can you please share the assembly you were decompiling in order to reproduce and fix?

Kind regards,
Vladi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Sadjad
Top achievements
Rank 1
answered on 11 Feb 2016, 04:37 PM

Can not Convert baml to xaml

 

Product version: 2016.1.112.1
Object reference not set to an instance of an object.
at Mono.Cecil.AssemblyResolver.AssemblyName.ParentDirectory(TargetPlatform runtime) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\OpenSource\Mono.Cecil\Mono.Cecil.AssemblyResolver\AssemblyName.cs:line 46
at Mono.Cecil.AssemblyResolver.AssemblyPathResolver.ResolveClr(AssemblyName assemblyName, TargetPlatform clrRuntime) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\OpenSource\Mono.Cecil\Mono.Cecil.AssemblyResolver\AssemblyPathResolver.cs:line 426
at Mono.Cecil.AssemblyResolver.AssemblyPathResolver.GetAssemblyLocationsByPlatform(AssemblyName assemblyName, TargetPlatform runtime) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\OpenSource\Mono.Cecil\Mono.Cecil.AssemblyResolver\AssemblyPathResolver.cs:line 279
at Mono.Cecil.AssemblyResolver.AssemblyPathResolver.GetAssemblyPaths(AssemblyName sourceAssemblyName) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\OpenSource\Mono.Cecil\Mono.Cecil.AssemblyResolver\AssemblyPathResolver.cs:line 262
at Mono.Cecil.BaseAssemblyResolver.GetTargetAssembly(AssemblyNameReference reference, ReaderParameters parameters, TargetArchitecture architecture) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\OpenSource\Mono.Cecil\Mono.Cecil\BaseAssemblyResolver.cs:line 620
at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, String defaultPath, ReaderParameters parameters, TargetArchitecture architecture, Boolean bubbleToUserIfFailed, Boolean addToFailedCache) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\OpenSource\Mono.Cecil\Mono.Cecil\BaseAssemblyResolver.cs:line 308
at Mono.Cecil.BaseAssemblyResolver.Resolve(String fullName, ReaderParameters parameters, TargetArchitecture platform, Boolean bubbleToUserIfFailed) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\OpenSource\Mono.Cecil\Mono.Cecil\BaseAssemblyResolver.cs:line 247
at •.–.–(String ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Tools\Telerik.Baml\CecilTypeResolver.cs:line 50
at ž•.—.get_Type() in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Tools\Telerik.Baml\Ricciolo.StylesExplorer.MarkupReflection\TypeDeclaration.cs:line 80
at ž•.™.˜() in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Tools\Telerik.Baml\Ricciolo.StylesExplorer.MarkupReflection\XmlBamlReader.cs:line 1221
at ž•.™.‡—() in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Tools\Telerik.Baml\Ricciolo.StylesExplorer.MarkupReflection\XmlBamlReader.cs:line 371
at ž•.™.ReadInternal() in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Tools\Telerik.Baml\Ricciolo.StylesExplorer.MarkupReflection\XmlBamlReader.cs:line 298
at ž•.™.Read() in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Tools\Telerik.Baml\Ricciolo.StylesExplorer.MarkupReflection\XmlBamlReader.cs:line 277
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at •.•.•(Stream –, IAssemblyResolver •, XDocument& €•, String ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Tools\Telerik.Baml\BamlToXamlConverterInternal.cs:line 22
at •.•.•(Stream –, IAssemblyResolver •, String ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Tools\Telerik.Baml\BamlToXamlConverter.cs:line 16
at ..(Stream , String ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\XamlXtract\Telerik.Xaml\TextWriters\BamlTextWriter.cs:line 17
at ..( , Stream –, String ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\XamlXtract\Telerik.Xaml\XamlDom\XmlLanguageWriter.cs:line 49
at ..Write( , Stream –, String ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\XamlXtract\Telerik.Xaml\XamlDom\XmlLanguageWriter.cs:line 31
at .’.Write(˜ ‹Ž) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\UI\JustDecompile.CodeViewer\Writers\XmlWriter.cs:line 46
at .Œ.( , TabCodeSettings ‹Ž, CancellationToken ) in c:\Builds\245\Behemot

 

0
Alexander
Telerik team
answered on 12 Feb 2016, 02:47 PM
Hi there,

Would it be possible that you zip the assembly where that happens and send it over to my email - alexander.dimitrov [at] telerik.com? Rather unfortunately, that seems to be the only way to reproduce that problem.

Please, note that [at] should be replaced with @.

Regards,
Alexander
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Sadjad
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or