opfo / app

An iOS app for the EDA397 course made at Chalmers in the spring of 2013.
7 stars 1 forks source link

OPFPost's property title nulled when comments associated #20

Closed tdeekens closed 11 years ago

tdeekens commented 11 years ago

Yau yau,

The actual bug

I noticed that the

@property (copy) NSString* title;

i nulled when the property

@property (strong) NSNumber* commentCount;

is bigger zero.

Its occurrence in UI

This can be seen in the comment view after selecting a question but also in the question view itself. Some headers (the grey box) show a title of NULL. Interestingly NULL is a string and not the primitive type.

Spec to reproduce

I added a Spec to reproduce the issue. The test suite currently fails due to the bug. While adding the Spec I also removed the buggy/non building Spec which was as it seems only a typo in the UI of Marcus fixed in #17.

The Spec can be found in the commit SHA: a8d5150b6209a9400ddb26defe12faa7c823aae8.

Cheers, Tobi

tdeekens commented 11 years ago

Answers do not have a title, their title is stored in their question which can be accessed via .parent.

Closed in: SHA1: 9b687a3cef68b048165e2f0056a9f267845bcb4b