Tíquete #35269

Sourceがnullのツイートの振り分けでArgumentNullException

: 2015-06-20 14:08 Última Atualização: 2015-06-20 14:35

Relator:
Dono:
Estado:
Fechado
Componente:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
Nenhum

Details

  • Message-Id: <20150316122726.6ef0d1f7f405d9cef288bf0c@****> (ドメイン名が含まれている箇所を伏字)
  • Date: Mon, 16 Mar 2015 12:27:26 +0900
  • From: ****
動作環境:
   オペレーティング システム: Microsoft Windows NT 6.3.9600.0
   共通言語ランタイム: 4.0.30319.34209
   OpenTween.exeのバージョン: 1.2.5.0
例外 System.ArgumentNullException: 値を Null にすることはできません。
パラメーター名:input
   場所 System.Text.RegularExpressions.Regex.IsMatch(String input)
   場所 lambda_method(Closure , PostClass )
   場所 OpenTween.TabClass.AddFiltered(PostClass post)
   場所 OpenTween.TabInformations.Distribute()
   場所 OpenTween.TabInformations.DistributePosts()
   場所 OpenTween.TweenMain.GetTimelineWorker_DoWork(Object sender, DoWorkEventArgs e)
   場所 System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

source が null なツイートは meerkat 関係のツイートで確認されており、発言詳細部の表示については f4257245 のように対策を施していたが、振り分けルールにおいては依然としてエラーが発生する状態となっていた。


関連する不具合として、v1.2.6 で追加されたミュートタブがDMに対しても及ぶことから PostClass.Source が null であるDMに対して振り分けルールを適用され同様のエラーが発生している。

  • Message-ID: <CAEWhA2ZqN9M0NJa0t3OG6XqHONybaWA=a6mQ5Pw=3VqAio5O7A@mail.gmail.com>
  • Date: Mon, 15 Jun 2015 10:43:38 +0000
  • From: ****
Environment:
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1
Common Language Runtime: 4.0.30319.18444
OpenTween.exe Version: 1.2.6.0
Exception System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.

-----InnerException[0]-----

Exception System.ArgumentNullException: Value cannot be null.
Parameter name: input
   at System.Text.RegularExpressions.Regex.IsMatch(String input)
   at lambda_method(Closure , PostClass )
   at OpenTween.TabClass.AddFiltered(PostClass post)
   at OpenTween.TabInformations.IsMuted(PostClass post)
   at OpenTween.TabInformations.AddPost(PostClass Item)
   at OpenTween.Twitter.CreateDirectMessagesFromJson(String content, WORKERTYPE gType, Boolean read)
   at OpenTween.Twitter.GetDirectMessageApi(Boolean read, WORKERTYPE gType, Boolean more)
   at OpenTween.TweenMain.<>c__DisplayClass3b.<GetDirectMessagesAsyncInternal>b__3a()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at OpenTween.TweenMain.<GetDirectMessagesAsyncInternal>d__3d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at OpenTween.TweenMain.<GetDirectMessagesAsync>d__36.MoveNext()

Ticket History (2/2 Histories)

2015-06-20 14:08 Updated by: upsilon
  • New Ticket "Sourceがnullのツイートの振り分けでArgumentNullException" created
2015-06-20 14:35 Updated by: upsilon
  • Resolução Update from Nenhum to Fixed
  • Estado Update from Aberto to Fechado
  • Ticket Close date is changed to 2015-06-20 14:35
Comentário

下記のコミットの通り修正しました。v1.2.7 から修正が反映される予定です。

https://osdn.jp/projects/opentween/scm/git/open-tween/commits/28766c0c596e51c4e82ce0098fe66af6e2d8aa63

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login