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

Error in Decompile

1 Answer 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Russ asked on 17 Feb 2012, 03:51 PM

  Public ReadOnly Property PreferedLanguage() As String
      If Me.Request.UserLanguages Is Nothing Then
        Return "en-US"
      ElseIf Me.Request.UserLanguages.Length > 0 Then
        Return Me.Request.UserLanguages(0)
        Return "en-US"
      End If
    End Get
  End Property
Exception in: System.
String PreferedLanguage()
Object reference not set to an instance of an object.
   at ‹.‹.–‹(List`1 intervals)
   at ‹.‹.Œ(ILogicalConstruct child)
   at ‹.‹.•‹(ILogicalConstruct block)
   at ˆ.Ž–.‰()
   at ˆ.Ž–.Process(DecompilationContext context, BlockStatement body)
   at Telerik.JustDecompiler.Decompiler.DecompilationPipeline.Run(MethodBody body, ILanguage language)
   at Telerik.JustDecompiler.Decompiler.Extensions.(DecompilationPipeline pipeline, ILanguage language, MethodBody body, DecompilationContext& context)
   at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.WriteGetMethod(PropertyDefinition property)
   at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.WritePropertyMethods(PropertyDefinition property)
   at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter..›.()
   at Telerik.JustDecompiler.Languages.VisualBasic.VisualBasicWriter.WriteBlock(Action action, String label)
   at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(PropertyDefinition property)
   at Telerik.JustDecompiler.Languages.BaseLanguageWriter.Write(IMemberDefinition member, Boolean showCompilerGeneratedMembers)
   at Telerik.JustDecompiler.Languages.BaseLanguageWriter.Write(IMemberDefinition member)
   at Telerik.JustDecompiler.Languages.BaseLanguageWriter.•ƒ(IMemberDefinition member, Boolean isFirstMember)
   at Telerik.JustDecompiler.Languages.BaseLanguageWriter.(TypeDefinition type, Func`3 writeMember, Boolean writeNewLine, Boolean showCompilerGeneratedMembers)
Product version: 2012.1.214.2

1 Answer, 1 is accepted

Sort by
Yordan Dikov
Telerik team
answered on 22 Feb 2012, 01:10 PM
Hi Russ,

 Thanks for sending the exception report, as well as the original code. We've logged it and we'll provide a fix in some of the upcoming releases, so stay tuned.

Yordan Dikov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
General Discussions
Asked by
Top achievements
Rank 1
Answers by
Yordan Dikov
Telerik team
Share this question