Skip Menu |

This queue is for tickets about the WWW-Myspace CPAN distribution.

Report information
The Basics
Id: 25390
Status: resolved
Priority: 0/
Queue: WWW-Myspace

People
Owner: Nobody in particular
Requestors: jeffsapiro [...] sbcglobal.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.62
Fixed in: (no value)



Subject: send_message crashes when sending to deleted account
Would be nice if this didn't happen when trying to send to a deleted account. Currently using .62 $message->subject(""); $message->message($message); $message->friend_ids( 9274979 ); $message->send_message; Can't call method "content" on an undefined value at /usr/lib/perl5/site_perl/5.8.5/WWW/Myspace.pm line 1304, <text> line 1. Script crashes..
From: olaf [...] wundersolutions.com
On Mon Mar 12 11:34:12 2007, quervo wrote: Show quoted text
> Would be nice if this didn't happen when trying to send to a deleted > account. Currently using .62 > > $message->subject(""); > $message->message($message); > $message->friend_ids( 9274979 ); > $message->send_message; > > > Can't call method "content" on an undefined value at > /usr/lib/perl5/site_perl/5.8.5/WWW/Myspace.pm line 1304, <text> line 1. > > Script crashes..
Hi Jeff, I've just added a method to Myspace called is_invalid which you can call on a profile before sending a message to it. That should prevent this condition from existing. Look for that in the next release of WWW::Myspace. Other than that if you want your change applied to the send_message method please send a patch that I can apply to the code for you. All the best, Olaf
See previous message in RT. Myspace::is_invalid (in upcoming release) will allow users to bypass this condition.