Skip to content

Commit 633f240

Browse files
committed
fix possible null in Util._convertUrl
1 parent 9a9eb3c commit 633f240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/util/resource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export function convertResourceUrl(symbol) {
208208
}
209209

210210
function _convertUrl(res) {
211-
if (isFunctionDefinition(res)) {
211+
if (isFunctionDefinition(res) && res.stops) {
212212
const stops = res.stops;
213213
for (let i = 0; i < stops.length; i++) {
214214
stops[i][1] = _convertUrl(stops[i][1]);

0 commit comments

Comments
 (0)