fixed null ref (#3061)

This commit is contained in:
Aditya Bist
2018-10-31 13:50:44 -07:00
committed by GitHub
parent 56c2d16560
commit 114d67b408

View File

@@ -31,7 +31,7 @@ export class FlatFileWizard {
public async start(p: any, ...args: any[]) {
let model = <ImportDataModel>{};
let profile = <sqlops.IConnectionProfile>p.connectionProfile;
let profile = p ? <sqlops.IConnectionProfile>p.connectionProfile : null;
if (profile) {
model.serverId = profile.id;
model.database = profile.databaseName;