xaml/baml NullReferenceException

4 posts, 0 answers
  1. David
    David avatar
    2 posts
    Member since:
    Oct 2012

    Posted 18 Jun 2014 Link to this post

    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
  2. Vladi
    Admin
    Vladi avatar
    167 posts

    Posted 20 Jun 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Sadjad
    Sadjad avatar
    2 posts
    Member since:
    Jan 2013

    Posted 11 Feb Link to this post

    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

     

  5. Alexander
    Admin
    Alexander avatar
    80 posts

    Posted 12 Feb Link to this post

    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
Back to Top