Skip to content

Commit

Permalink
solved nullpointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Masili committed Jul 18, 2021
1 parent b651385 commit d98fd48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/commands/load_osm.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ func determineOsmCols(c *utils.Config) []connectors.Column {
}

func (r OsmRunner) Run(c *utils.Config) error {
r.Connector = &connectors.PgConnector{
Config: c, TableName: c.TableName,
}
dbErr := r.Connector.Connect()
if dbErr != nil {
return dbErr
Expand Down
3 changes: 3 additions & 0 deletions core/commands/load_wof.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ func determineCols(c *utils.Config) []connectors.Column {
}

func (r WofRunner) Run(c *utils.Config) error {
r.Connector = &connectors.PgConnector{
Config: c, TableName: c.TableName,
}
dbErr := r.Connector.Connect()
if dbErr != nil {
return dbErr
Expand Down

0 comments on commit d98fd48

Please sign in to comment.