Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

state.code and country.code aren't nil-safe

#41

User#state.code and User#state.country.code aren't nil-safe, so the app crashes if the state or country is blank.

Reported by Marnen Laibow-Koser · October 13th, 2009 @ 01:35 PM

State: resolved
Milestone: none
Assigned to: Marnen Laibow-Koser Marnen Laibow-Koser

Activity

  1. Marnen Laibow-Koser
    Marnen Laibow-Koser
    • State changed from new to open

    Working on this.

    October 19th, 2009 @ 04:54 PM

  2. Marnen Laibow-Koser
    Marnen Laibow-Koser

    Since User (and Event!) is composed_of Address, this will probably be easiest to attack if we take care of this in Address, then make User#state and Event#state delegate to Address#state.

    October 19th, 2009 @ 04:57 PM

  3. Marnen Laibow-Koser
    Marnen Laibow-Koser

    Almost working. But we need to unify the handling of coordinates in User and Event.

    October 19th, 2009 @ 07:16 PM

  4. Marnen Laibow-Koser
    Marnen Laibow-Koser
    • State changed from open to hold

    Created a ticket (#43) for coords handling. Putting this ticket on hold till we deal with #43 Unify handling of coords in User and Event..

    October 19th, 2009 @ 07:18 PM

  5. Marnen Laibow-Koser
    Marnen Laibow-Koser
    • State changed from hold to open

    October 19th, 2009 @ 09:08 PM

  6. Marnen Laibow-Koser
  7. Marnen Laibow-Koser
  8. Marnen Laibow-Koser
  9. Marnen Laibow-Koser
  10. Marnen Laibow-Koser
  11. Marnen Laibow-Koser
  12. Marnen Laibow-Koser
  13. Marnen Laibow-Koser
  14. Marnen Laibow-Koser
    Marnen Laibow-Koser
    • State changed from open to resolved

    Done.

    October 20th, 2009 @ 11:19 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.