Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bug when comparing two objects  RSS feed

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code compares 2 objects and informs user about time conflicts:



It compares registeredcourseobject and coursestoregisterobject for time conflicts. The problem is script is buggy especially when registeredcourseobject is null or its not working properly when comparing elements of coursestoregisterobject.

example failure:

another example failure:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!