AppInfo appInfo = GlobalInformation.getCurrentApplication();
if (appInfo.getMainBinaryInfo().getTargetBinaryPath().equals(libName)
&& appInfo.getAppType().contains(AppInfo.APPTYPE_CAPP)) {
- filePath = appInfo.getSourcePath() + sourceLine.getFilePath();
+ String sourcePath = appInfo.getSourcePath();
+ if (null != sourcePath && !sourcePath.isEmpty()) {
+ filePath = appInfo.getSourcePath() + sourceLine.getFilePath();
+ } else {
+ filePath = sourceLine.getFilePath();
+ }
} else {
filePath = sourceLine.getFilePath();
}
AppInfo appInfo = GlobalInformation.getCurrentApplication();
if (binInfo.equals(appInfo.getMainBinaryInfo())
&& appInfo.getAppType().contains(AppInfo.APPTYPE_CAPP)) {
- path = appInfo.getDebugFilePath();
+ String debugPath = appInfo.getDebugFilePath();
+ if (null != debugPath && !debugPath.isEmpty()) {
+ path = debugPath;
+ } else {
+ path = binInfo.getTempBinaryPath();
+ }
} else {
path = binInfo.getTempBinaryPath();
}