Skip to content

Instantly share code, notes, and snippets.

java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at eu.siacs.conversations.ui.widget.ListSelectionManager.startSelection( ListSelectionManager.java:215)
at eu.siacs.conversations.ui.widget.ListSelectionManager.startSelection( ListSelectionManager.java:201)
at eu.siacs.conversations.ui.ConversationFragment.selectText(ConversationFragment.java:754)
at eu.siacs.conversations.ui.ConversationFragment.onContextItemSelected( ConversationFragment.java:670)
at android.app.Fragment.performContextItemSelected(Fragment.java:2341)
at android.app.FragmentManagerImpl.dispatchContextItemSelected(FragmentManager.java:2088)
at android.app.FragmentController.dispatchContextItemSelected(FragmentController.java:303)
at android.app.Activity.onMenuItemSelected(Activity.java:2986)
java.lang.IndexOutOfBoundsException: Invalid index 3, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.add(ArrayList.java:147)
at com.android.internal.view.menu.ActionMenu.add(ActionMenu.java:66)
at com.android.internal.view.menu.ActionMenu.add(ActionMenu.java:60)
at eu.siacs.conversations.ui.adapter.MessageAdapter$MessageBodyActionModeCallback.onCreateActionMode( MessageAdapter.java:870)
at eu.siacs.conversations.ui.widget.ListSelectionManager$CustomCallback.onCreateActionMode( ListSelectionManager.java:132)
at android.widget.Editor.startSelectionActionModeInternal(Editor.java:1760)
at android.widget.Editor.startSelectionActionMode(Editor.java:1713)
at java.lang.reflect.Method.invoke(Native Method)
@PolynomialDivision
PolynomialDivision / null_olsrd
Created March 16, 2018 14:33
Nullpointer olsrd
Fri Mar 16 15:28:35 2018 kern.notice kernel: [ 0.000000] Linux version 4.4.116 (buildbot@ubuntu) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2993+847-b9a408c) ) #0 Tue Feb 20 09:50:37 2018
Fri Mar 16 15:28:35 2018 kern.debug kernel: [ 0.000000] MyLoader: sysp=29e9e98f, boardp=69e96996, parts=69692796
Fri Mar 16 15:28:35 2018 kern.info kernel: [ 0.000000] bootconsole [early0] enabled
Fri Mar 16 15:28:35 2018 kern.info kernel: [ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
Fri Mar 16 15:28:35 2018 kern.info kernel: [ 0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
Fri Mar 16 15:28:35 2018 kern.info kernel: [ 0.000000] Determined physical RAM map:
Fri Mar 16 15:28:35 2018 kern.info kernel: [ 0.000000] memory: 08000000 @ 00000000 (usable)
Fri Mar 16 15:28:35 2018 kern.info kernel: [ 0.000000] Initrd not found or empty - disabling initrd
Fri Mar 16 15:28:35 2018 kern.warn kernel: [ 0.000000] No valid device tree found, continuing without
Fri Mar 16 15:28:35 2018 kern.info kernel: [ 0
-kmod-usb-core
-kmod-usb2
-kmod-ledtrig-usbdev
-kmod-usb-ohci
-kmod-ppp
-kmod-usb-serial
-ppp
-ppp-mod-pppoe
-wpad
var x1, binary;
var x2, binary;
var x3, binary;
var x4, binary;
minimize obj: 170 * x1 + 200 * x2 + 50 * x3 + 150 * x4;
s.t. c1: 8 * x1 + 30 - 30 * x1 + 3 * x2 + 10 - 10 * x2 + 7 * x4 + 15 - 15 * x4 <= 50;
s.t. c2: 8 * x1 + 30 - 30 * x1 + 15 * x3 + 25 - 25 * x3 + 7 * x4 + 15 - 15 * x4 <= 50;
s.t. c3: -1000 * x2 - 1000 * x3 + 8 * x1 + 30 - 30 * x1 + 3 * x2 + 10 - 10 * x2 + 15 * x3 + 25 - 25 * x3 + 7 * x4 + 15 - 15 * x4 <= 50;
0xf9C4ADDC387aFaebEc84503F3ADCE158fb4ce691
To test the changes I did you have to clone openwrt
git clone https://git.openwrt.org/openwrt/openwrt.git
After that you have to copy the feeds.conf.default in openwrt-git-folder to
cp feeds.conf.default feeds.conf
after that add to feeds.conf
#define IPV6_EXT_ROUTING 43
#define IPV6_ENCAP 41 // [RFC2473]
#define ipv6_optlen(p) (((p)->hdrlen + 1) << 3)
#define MAX_SEG_LIST 1
#define AF_INET6 10
#define IPV6_FLOWINFO_MASK bpf_htonl(0x0FFFFFFF)
#define IPV6_EXT_ROUTING 43
#define IPV6_ENCAP 41 // [RFC2473]
#define ipv6_optlen(p) (((p)->hdrlen + 1) << 3)
#define MAX_SEG_LIST 1
#define AF_INET6 10
#define IPV6_FLOWINFO_MASK bpf_htonl(0x0FFFFFFF)