File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
src/EFCore.Jet.Data/JetStoreSchemaDefinition Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -175,18 +175,21 @@ public static bool ProcessDatabaseOperation(JetCommand command)
175
175
176
176
public static string ExtractFileNameFromConnectionString ( string connectionString )
177
177
{
178
- var match = _regExExtractFilenameFromConnectionString . Match ( connectionString ) ;
179
- if ( match . Success )
178
+ if ( connectionString != null )
180
179
{
181
- var fileName = match . Groups [ "filename" ] . Value ;
182
-
183
- if ( match . Groups [ "quote" ] . Success )
180
+ var match = _regExExtractFilenameFromConnectionString . Match ( connectionString ) ;
181
+ if ( match . Success )
184
182
{
185
- var quoteChar = match . Groups [ "quote" ] . Value ;
186
- fileName = fileName . Replace ( quoteChar + quoteChar , quoteChar ) ;
187
- }
183
+ var fileName = match . Groups [ "filename" ] . Value ;
184
+
185
+ if ( match . Groups [ "quote" ] . Success )
186
+ {
187
+ var quoteChar = match . Groups [ "quote" ] . Value ;
188
+ fileName = fileName . Replace ( quoteChar + quoteChar , quoteChar ) ;
189
+ }
188
190
189
- return fileName ;
191
+ return fileName ;
192
+ }
190
193
}
191
194
192
195
return connectionString ;
You can’t perform that action at this time.
0 commit comments