[Rt-commit] [rtir] 08/10: Portect against undefined warnings for empty URIs in testing

Jesse Vincent jesse at bestpractical.com
Sat Feb 21 16:15:18 EST 2015


This is an automated email from the git hooks/post-receive script.

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit 138c93dcead2003faa92c5c48199e4734e0d426d
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sat Feb 21 12:06:50 2015 -0800

    Portect against undefined warnings for empty URIs in testing
---
 lib/RT/Action/RTIR_MergeIPs.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RT/Action/RTIR_MergeIPs.pm b/lib/RT/Action/RTIR_MergeIPs.pm
index 0d97b78..d1a9daf 100644
--- a/lib/RT/Action/RTIR_MergeIPs.pm
+++ b/lib/RT/Action/RTIR_MergeIPs.pm
@@ -60,7 +60,7 @@ sub Commit {
     my $self = shift;
 
     my $txn = $self->TransactionObj;
-    my $uri = $txn->NewValue;
+    my $uri = $txn->NewValue ||'';
 
     my $uri_obj = RT::URI->new( $self->CurrentUser );
     my ($status) = $uri_obj->FromURI( $uri );

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list