BaseXdb/basex — Issue #397: Crash creat
Author: apb2006
Created: 2012-02-23 21:50:20+00:00
State: open

----------------------------------
let $x:=

package tools

apb.pacman
pacman.xq

parser-basex
parser-basex.xquery

return zip:zip-file($x)
------------------------------
let $x:=

package tools

apb.pacman
pacman.xq

parser-basex
parser-basex.xquery

return zip:zip-file($x)
result
Improper use? Potential bug? Your feedback is welcome:
Contact: basex-talk@mailman.uni-konstanz.de
Version: BaseX 7.1.2 beta
Java: Sun Microsystems Inc., 1.6.0_26
OS: Linux, i386
Stack Trace:
java.lang.NullPointerException
org.basex.data.NSNode.delete(NSNode.java:103)
org.basex.data.NSNode.delete(NSNode.java:103)
org.basex.data.Namespaces.delete(Namespaces.java:198)
org.basex.query.util.DataBuilder.stripNS(DataBuilder.java:313)
org.basex.query.func.FNZip.create(FNZip.java:360)
org.basex.query.func.FNZip.zipFile(FNZip.java:264)
org.basex.query.func.FNZip.item(FNZip.java:101)
org.basex.query.expr.ParseExpr.iter(ParseExpr.java:57)
org.basex.query.QueryContext.iter(QueryContext.java:416)
org.basex.query.flwor.FLWR$1.next(FLWR.java:68)
org.basex.core.cmd.AQuery.query(AQuery.java:99)
org.basex.core.cmd.XQuery.run(XQuery.java:22)
org.basex.core.Command.run(Command.java:337)
org.basex.core.Command.exec(Command.java:318)
org.basex.core.Command.execute(Command.java:77)
org.basex.server.ClientListener.run(ClientListener.java:198)