# メールアドレスへのPM送信時に発生するJavaScriptエラー

**URL:** <https://meta.discourse.org/t/javascript-error-when-sending-pm-to-email-address/132065>\
**Category:** Bug\
**Created:** [2019 年 10 月 28 日午後 1:46 UTC](https://meta.discourse.org/t/javascript-error-when-sending-pm-to-email-address/132065 "2019-10-28T13:46:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2019 年 10 月 28 日午後 1:46 UTC](https://meta.discourse.org/t/javascript-error-when-sending-pm-to-email-address/132065/1 "2019-10-28T13:46:08Z")

</div>

みなさん、こんにちは！お元気ですか？週末は楽しかったですか。

通常は問題なく動作するメールアドレスへの PM 送信を試みています。メールアドレスを貼り付け、オートコンプリートから選択し、メッセージの残りを記入して完了です。しかし今、メールアドレスを貼り付けると何も起こらず、コンソールにエラーが表示されます。すべての機能を無効化したセーフモードでも同様です。スクリーンショットとログを以下に示します。最新リリース +188 を使用しています。

 ![16%20AM](https://global.discourse-cdn.com/meta/original/3X/4/b/4ba796d1f9d91ad37ba9d350847e92c497939430.png)

### メッセージ（2 回報告）

```
Uncaught TypeError: Cannot read property 'length' of null Url: https://DISCOURSEURL/assets/application-11ddd9238d65444ab29fe3d9a5f36d4f99dabf8559c666441bff0bf449d85c6c.js Line: 1 Column: 326526 Window Location: https://DISCOURSEURL/u/tobiaseigen/messages

```

### バックトレース

```
TypeError: Cannot read property 'length' of null at HTMLInputElement.<anonymous> (https://DISCOURSEURL/assets/application-11ddd9238d65444ab29fe3d9a5f36d4f99dabf8559c666441bff0bf449d85c6c.js:1:326526) at HTMLInputElement.dispatch (https://DISCOURSEURL/assets/ember_jquery-3a6106596c1410fe768d3369b59e90f9eb4c3d8bf2eb6861dee02656c7551714.js:1:42577) at HTMLInputElement.v.handle (https://DISCOURSEURL/assets/ember_jquery-3a6106596c1410fe768d3369b59e90f9eb4c3d8bf2eb6861dee02656c7551714.js:1:40589)

```

### 環境情報

```
  1/2  

hostname community-app
process_id 792
application_version 8ca5aad1e2b1612c2ef6824bd574eea9ef71d30d
HTTP_HOST DISCOURSEURL
REQUEST_URI /logs/report_js_error
REQUEST_METHOD POST
HTTP_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36
HTTP_ACCEPT */*
HTTP_REFERER https://DISCOURSEURL/u/tobiaseigen/messages
HTTP_X_FORWARDED_FOR 73.239.176.161
HTTP_X_REAL_IP 73.239.176.161
time 6:29 am
params message Uncaught TypeError: Cannot read property 'length' of null
--- --- --- ---
--- ---
url https://DISCOURSEURL/assets/application-11ddd9238d65444ab29fe3d9a5f36d4f99dabf8559c666441bff0
line 1
column 326526
window_location https://DISCOURSEURL/u/tobiaseigen/messages
stacktrace TypeError: Cannot read property 'length' of null at HTMLInputElement.<anonymous> (https://communi

```

---

_[View the full topic](https://meta.discourse.org/t/javascript-error-when-sending-pm-to-email-address/132065)._
