Skip to content

Commit

Permalink
throwing out nil stop geoms for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
doublestranded committed Dec 6, 2016
1 parent da6d9ff commit dbca1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/quality_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def check
stop_rsp_gap_pairs << [rsp.onestop_id, stop.onestop_id]
end
end
if stop.geometry[:coordinates].eql?([0.0, 0.0])
if !stop.geometry.nil? && stop.geometry[:coordinates].eql?([0.0, 0.0])
issue = Issue.new(created_by_changeset: self.changeset,
issue_type: 'stop_position_inaccurate',
details: "Stop #{stop.onestop_id} is serving null island.")
Expand Down

0 comments on commit dbca1df

Please sign in to comment.