NullPointerException com.mattermost.pasteinputtext.PasteInputEditText in onCreateInputConnection
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- android, react-native
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra PasteInputEditText.onCreateInputConnection ở dòng 58 và xem xét cách sử dụng React Native không được kiểm soát đã cung cấp. Tái hiện stack trace của Sentry trên Android với các props mẫu, sau đó xác định liệu lỗi nằm ở thư viện hay ở phần tích hợp. Done phải bao gồm nguyên nhân đã được xác nhận và cách giải quyết đã được kiểm chứng, nhưng issue không xác định hành vi mong đợi hoặc phạm vi kiểm thử.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hey mattermost team, wonder if anyone hit this before on Android device.
More context on how we use it, we are using it as uncontrolled input like how bluesky is using it.
Will wanna identify if it's a library issue or my implementation issue.
Please let me know if any more information is needed.
Sample code on how I'm using it
const pasteInputRef = useRef<PasteInputRef>(null);
useImperativeHandle(ref, () => ({
focus: () => {
pasteInputRef.current?.focus();
},
blur: () => {
pasteInputRef.current?.blur();
},
clear: () => {
pasteInputRef.current?.clear();
},
}));
return (
<View style={containerStyle}>
<PasteInput
ref={pasteInputRef}
multiline
maxLength={500}
style={[styles.input, disabled && styles.disabled, inputStyle]}
onChangeText={onChangeText}
onPaste={() => {}}
autoCorrect
pointerEvents={disabled ? 'none' : 'auto'}
caretHidden={disabled}
editable={!disabled}
readOnly={disabled}
focusable={!disabled}
placeholderTextColor={disabled ? colorScheme['content-disabled'] : colorScheme['content-placeholder']}
allowFontScaling={false}
selectionColor={inputSelectionColor}
selectionHandleColor={androidInputSelectionHandleColor}
cursorColor={androidInputCursorColor}
>
{children}
</PasteInput>
</View>
);
Stack trace on Sentry:
com.mattermost.pasteinputtext.PasteInputEditText in onCreateInputConnection at line 58
android.view.inputmethod.InputMethodManager in startInputInner at line 2318
android.view.inputmethod.InputMethodManager in restartInput at line 2174
com.android.internal.inputmethod.RemoteInputConnectionImpl in lambda$scheduleInvalidateInput$0$com-android-internal-inputmethod-RemoteInputConnectionImpl at line 298
com.android.internal.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda7 in run at line 4
android.os.Handler in handleCallback at line 942
android.os.Handler in dispatchMessage at line 99
android.os.Looper in loopOnce at line 211
android.os.Looper in loop at line 300
android.app.ActivityThread in main at line 8324
java.lang.reflect.Method in invoke
com.android.internal.os.RuntimeInit$MethodAndArgsCaller in run at line 581
com.android.internal.os.ZygoteInit in main at line 1028
- Ngôn ngữ chính
- Objective-C
- Star
- 213
- Fork
- 39
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mattermost/react-native-paste-input
-
v2 paste interception silently bails on RN 0.76+ Fabric (uses `__nativeTag` which is undefined)Có thể đã có người làm @manan19 đã nhận 153 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
mattermost/react-native-paste-input#54 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Not compatible with webĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
-
Issues with Expo 53 + new archĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
mattermost/react-native-paste-input#47 · 6 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Tất cả issue của mattermost/react-native-paste-input
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
sparkle-project/Sparkle#2932 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Typo in installer: “addition protections” → “additional protections”Có thể đã có người làm @Jah-yee đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
objective-see/BlockBlock#111 ·
-
s: need triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Tencent-TDS/KuiklyUI#1786 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
DataDog/dd-sdk-ios#3293 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
callstackincubator/voltra#340 ·
Maintainer thường phản hồi trong vòng 4 ngày