lib/careerbuilder/job.rb in careerbuilder-0.1.1 vs lib/careerbuilder/job.rb in careerbuilder-0.1.2

- old
+ new

@@ -17,10 +17,10 @@ end def self.find(id) results = Careerbuilder::Utils::Request.get({job_id: id}) - if results[:job_count] > 0 + if results && results[:job_count] > 0 job = Careerbuilder::Job.new job.data = results[:jobs][0] else job = nil end