OSDN Git Service

プロフィール表示時にNullReferenceExceptionを起こす場合があったのを修正
authorf_swallow <f_swallow@users.sourceforge.jp>
Tue, 4 Jan 2011 13:43:09 +0000 (13:43 +0000)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:18:17 +0000 (23:18 +0900)
git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@1311 e39ad16e-3079-482e-bb30-4b4d378143b6

Tween/Twitter.vb

index 982b5fb..e82e10d 100644 (file)
@@ -2524,6 +2524,7 @@ Public Class Twitter
         End Sub
     End Class
     Public Function CreateHtmlAnchor(ByVal Text As String, ByVal AtList As List(Of String)) As String
+        If Text Is Nothing Then Return Nothing
         Dim retStr As String = Text.Replace("&gt;", "<<<<<tweenだいなり>>>>>").Replace("&lt;", "<<<<<tweenしょうなり>>>>>")
         'uriの正規表現
         'Const rgUrl As String = "(?<before>(?:[^\""':!=]|^|\:))" + _