fixed null ref (#3061)

This commit is contained in:
Aditya Bist
2018-10-31 13:50:44 -07:00
committed by Karl Burtram
parent 9b0757de9c
commit 711b7bf622

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;