Skip to content

Commit

Permalink
Catch the exception here so we at least finish the WBXML output.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 18, 2016
1 parent d5d7151 commit 754d1ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -370,7 +370,11 @@ public function messageChange($id, Horde_ActiveSync_Message_Base $message)
$this->_encoder->content($id);
$this->_encoder->endTag();
$this->_encoder->startTag(Horde_ActiveSync::SYNC_DATA);
$message->encodeStream($this->_encoder);
try {
$message->encodeStream($this->_encoder);
} catch (Horde_ActiveSync_Exception $e) {
$this->_logger->err($e);
}
$this->_encoder->endTag();
$this->_encoder->endTag();
}
Expand Down
1 change: 1 addition & 0 deletions framework/ActiveSync/lib/Horde/ActiveSync/Message/Base.php
Expand Up @@ -477,6 +477,7 @@ public function decodeStream(Horde_ActiveSync_Wbxml_Decoder &$decoder)
* Output is ordered according to $_mapping
*
* @param Horde_ActiveSync_Wbxml_Encoder $encoder The wbxml stream encoder
* @throws Horde_ActiveSync_Exception
*/
public function encodeStream(Horde_ActiveSync_Wbxml_Encoder &$encoder)
{
Expand Down

0 comments on commit 754d1ad

Please sign in to comment.