Bug 15542 - don't pass nil to a method returning NSSize
Summary: don't pass nil to a method returning NSSize
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P3 Minor
Assignee: Darin Adler
URL:
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2007-10-17 13:10 PDT by Darin Adler
Modified: 2007-10-17 14:33 PDT (History)
0 users

See Also:


Attachments
patch, adds a special case for nil (4.64 KB, patch)
2007-10-17 13:11 PDT, Darin Adler
mrowe: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2007-10-17 13:10:29 PDT
A new debugging tool caught a place where we are calling a method that returns an NSSize, and passing it nil. This is not guaranteed to work correctly.
Comment 1 Darin Adler 2007-10-17 13:10:41 PDT
<rdar://problem/5183775>
Comment 2 Darin Adler 2007-10-17 13:11:27 PDT
Created attachment 16706 [details]
patch, adds a special case for nil
Comment 3 Mark Rowe (bdash) 2007-10-17 13:31:37 PDT
Comment on attachment 16706 [details]
patch, adds a special case for nil

r=me
Comment 4 Mark Rowe (bdash) 2007-10-17 14:33:05 PDT
Darin landed this in r26709.