OSDN Git Service

RT時にタブを閉じるのが早いとNullrefになるバグ修正
authorkiri_feather <kiri_feather@users.sourceforge.jp>
Mon, 5 Sep 2011 03:53:34 +0000 (12:53 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:19:50 +0000 (23:19 +0900)
Tween/Twitter.vb

index 4ed716e..e662d9d 100644 (file)
@@ -685,6 +685,10 @@ Public Class Twitter
 
         'データ部分の生成
         Dim target As Long = id
+        Dim post As PostClass = TabInformations.GetInstance.Item(id)
+        If post Is Nothing Then
+            Return "Err:Target isn't found."
+        End If
         If TabInformations.GetInstance.Item(id).RetweetedId > 0 Then
             target = TabInformations.GetInstance.Item(id).RetweetedId '再RTの場合は元発言をRT
         End If