Project

General

Profile

バグ #419

【バグ?】filter_show_filterでフィルターを作っているときにAPI切れでTLが取得できない時に落ちる

Added by コスモ 虹川 almost 9 years ago. Updated almost 9 years ago.

Status:
却下
Priority:
低め
Target version:
-
プラグイン名:
ブランチ:
クラッシュする:

Description

以下エラー:

TypeError can't convert nil into String
{MIKUTTER_DIR}/plugin/client_filter.rb:8:in `include?'
{MIKUTTER_DIR}/plugin/client_filter.rb:8:in `block (4 levels) in <top (required)>'
{MIKUTTER_DIR}/plugin/client_filter.rb:7:in `each'
{MIKUTTER_DIR}/plugin/client_filter.rb:7:in `any?'
{MIKUTTER_DIR}/plugin/client_filter.rb:7:in `block (3 levels) in <top (required)>'
{MIKUTTER_DIR}/plugin/client_filter.rb:6:in `select'
{MIKUTTER_DIR}/plugin/client_filter.rb:6:in `block (2 levels) in <top (required)>'
{MIKUTTER_DIR}/core/plugin.rb:217:in `call'
{MIKUTTER_DIR}/core/plugin.rb:217:in `block (3 levels) in filtering'
{MIKUTTER_DIR}/core/plugin.rb:263:in `block in call_routine'
{MIKUTTER_DIR}/core/plugin.rb:263:in `catch'
{MIKUTTER_DIR}/core/plugin.rb:263:in `call_routine'
{MIKUTTER_DIR}/core/plugin.rb:252:in `boot_plugin'
{MIKUTTER_DIR}/core/plugin.rb:216:in `block (2 levels) in filtering'
{MIKUTTER_DIR}/core/plugin.rb:213:in `each'
{MIKUTTER_DIR}/core/plugin.rb:213:in `inject'
{MIKUTTER_DIR}/core/plugin.rb:213:in `block in filtering'
{MIKUTTER_DIR}/core/plugin.rb:212:in `catch'
{MIKUTTER_DIR}/core/plugin.rb:212:in `filtering'
{MIKUTTER_DIR}/core/mui/gtk_timeline_utils.rb:85:in `add'
{MIKUTTER_DIR}/core/lib/uithreadonly.rb:22:in `block (2 levels) in singletonclass'
{MIKUTTER_DIR}/core/addon/friend_timeline.rb:10:in `block (2 levels) in <top (required)>'
{MIKUTTER_DIR}/core/plugin.rb:236:in `call'
{MIKUTTER_DIR}/core/plugin.rb:236:in `block in plugin_callback_loop'
{MIKUTTER_DIR}/core/plugin.rb:244:in `call'
{MIKUTTER_DIR}/core/plugin.rb:244:in `block (2 levels) in plugin_loop'
{MIKUTTER_DIR}/core/plugin.rb:263:in `block in call_routine'
{MIKUTTER_DIR}/core/plugin.rb:263:in `catch'
{MIKUTTER_DIR}/core/plugin.rb:263:in `call_routine'
{MIKUTTER_DIR}/core/plugin.rb:250:in `block in boot_plugin'
{MIKUTTER_DIR}/core/plugin.rb:250:in `new'
{MIKUTTER_DIR}/core/plugin.rb:250:in `boot_plugin'
{MIKUTTER_DIR}/core/plugin.rb:243:in `block in plugin_loop'
{MIKUTTER_DIR}/core/plugin.rb:242:in `each'
{MIKUTTER_DIR}/core/plugin.rb:242:in `plugin_loop'
{MIKUTTER_DIR}/core/plugin.rb:235:in `plugin_callback_loop'

mikutter_botのメッセージにクライアント情報が含まれていないのが原因なんでしょうかね。

#1

Updated by toshi_a 初音 almost 9 years ago

  • Status changed from 新規 to レビュー待ち

Messageには、必ずクライアント名が含まれているわけでは無いので、クライアント名の取得に失敗すると常にnilを返す仕様です、プラグイン側で戻り値をチェックするようにしてください。
それ以外の挙動が原因なら、このチケットを差し戻してください。

#2

Updated by コスモ 虹川 almost 9 years ago

  • Status changed from レビュー待ち to 却下

プラグイン側で戻り値のチェックをするようにしました。このチケットは却下とします。

Also available in: Atom PDF