D Deleted member 19424 Guest Feb 25, 2012 #1 Hello, can somebody explain, what's wrong with the following code: Sub Process_Globals Dim Parser as SaxParser End Sub Sub xy Dim in as InputStream in = File.OpenInput(File.DirAssets, "Camera.xml") Parser.Parse(in, "Parser") '"NullPointerException" End Sub Remark: The file "Camera.xml" exits (in the Assets-folder").
Hello, can somebody explain, what's wrong with the following code: Sub Process_Globals Dim Parser as SaxParser End Sub Sub xy Dim in as InputStream in = File.OpenInput(File.DirAssets, "Camera.xml") Parser.Parse(in, "Parser") '"NullPointerException" End Sub Remark: The file "Camera.xml" exits (in the Assets-folder").
Kiffi Well-Known Member Licensed User Longtime User Feb 25, 2012 #2 Ein Parser.Initialize vor dem Parser.Parse() sollte helfen. Grüße ... Kiffi