[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Sun Mar 21 21:44:10 CET 2010
SVN commit 1106094 by nienhueser:
Do not try to parse empty results.
M +3 -0 RoutingInputWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingInputWidget.cpp #1106093:1106094
@@ -297,6 +297,9 @@
void RoutingInputWidget::handleHttpReply( QNetworkReply* reply )
{
+ if (!reply->bytesAvailable())
+ return;
+
QDomDocument xml;
if (!xml.setContent(reply->readAll())) {
qWarning() << "Cannot parse osm nominatim result " << xml.toString();
More information about the Marble-commits
mailing list