I pressed back on app, it was suppose to show the xml data, and it crashed
(using English XML)
this is the stack:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
XML phrase code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			(using English XML)
this is the stack:
			
				B4X:
			
		
		
		mainmenu_jobdone (java line: 486)
java.lang.NullPointerException
    at anywheresoftware.b4a.objects.SaxParser.parse(SaxParser.java:78)
    at anywheresoftware.b4a.objects.SaxParser.Parse(SaxParser.java:73)
    at AvHabait.co.il.mainmenu._jobdone(mainmenu.java:486)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at anywheresoftware.b4a.keywords.Common$5.run(Common.java:996)
    at android.os.Handler.handleCallback(Handler.java:615)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4921)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
    at dalvik.system.NativeStart.main(Native Method)
			
				B4X:
			
		
		
		<?xml version="1.0" encoding="windows-1255"?>
<rss version="2.0">
    <channel>
      
        <item>
            <title>aaa</title>
            <color>5</color>
            <link>1</link>
            <description>none</description>
        </item>
        <item>
            <title>bbb</title>
            <color>6</color>
            <link>2</link>
            <description>none</description>
        </item>
    </channel>
</rss>XML phrase code:
			
				B4X:
			
		
		
		activity_create:
If FirstTime Then
        parser.Initialize
    End If
...
Sub Parser_EndElement (Uri As String, Name As String, Text As StringBuilder)
    If parser.Parents.IndexOf("item") > -1 Then
        If Name = "title" Then
            Title = Text.ToString
        Else If Name = "link" Then
            Link = Text.ToString
        Else if Name = "color" Then
            TitleColor = Text.ToString  
        End If
    End If
    If Name = "item" Then
        clv1.AddTextItem(Title, Link) 'add the title as the text and the link as the value  
    End If
End Sub 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		