Skip to content

Commit 95cbb99

Browse files
committed
fix: fix cannot read property projectDir of undefined
1 parent 2d354bf commit 95cbb99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/log-source-map-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class LogSourceMapService implements Mobile.ILogSourceMapService {
5353
}
5454

5555
public replaceWithOriginalFileLocations(platform: string, messageData: string, loggingOptions: Mobile.IDeviceLogOptions): string {
56-
if (!messageData || !loggingOptions.projectDir) {
56+
if (!messageData || !loggingOptions || !loggingOptions.projectDir) {
5757
return messageData;
5858
}
5959

0 commit comments

Comments
 (0)