diff --git a/RxCocoa/Common/Observables/NSNotificationCenter+Rx.swift b/RxCocoa/Common/Observables/NSNotificationCenter+Rx.swift index 0f912e36..a9ad4517 100644 --- a/RxCocoa/Common/Observables/NSNotificationCenter+Rx.swift +++ b/RxCocoa/Common/Observables/NSNotificationCenter+Rx.swift @@ -20,7 +20,7 @@ extension NSNotificationCenter { - returns: Observable sequence of posted notifications. */ @warn_unused_result(message="http://git.io/rxs.uo") - public func rx_notification(name: String, object: AnyObject? = nil) -> Observable { + public func rx_notification(name: String?, object: AnyObject? = nil) -> Observable { return Observable.create { [weak object] observer in let nsObserver = self.addObserverForName(name, object: object, queue: nil) { notification in observer.on(.Next(notification))