Esri / arcgis-maps-sdk-toolkit-qt

ArcGIS Maps SDK for Qt Toolkit
Apache License 2.0
132 stars 61 forks source link

Fixing Error: Cannot assign [undefined] to QUrl/QString #555

Closed mfeigl closed 2 years ago

mfeigl commented 2 years ago

The function append(basemap, thumbnailUrl, tooltip) is sometimes called with just a basemap provided as argument, which causes the thumbnailUrl and tooltip to be undefined.

This causes a massive wave of errors when running the tool. Fortunately, fixing it was simple enough.

With this modification, the behavior did not change, but the errors all went away.